Repository: Pycord-Development/pycord

Issue:
AttributeError: 'SlashCommandGroup' object has no attribute 'name'
### Summary

AttributeError: 'SlashCommandGroup' object has no attribute 'name'

### Reproduction Steps

Updated to the latest version. 

### Minimal Reproducible Code

```python
import discord
from discord.ext import commands
from discord.commands import SlashCommandGroup

class cog_name(commands.Cog):
    def __init__(self, bot):
        self.bot = bot


    test = SlashCommandGroup("test", "test related commands!", guild_ids=[***])

    @test.command( name='test_hi_group', description='test')
    async def test_hi(self,ctx):
        name = ctx.author.name
        await ctx.respond(f"Hello {name}!")

def setup(bot):
    bot.add_cog(cog_name(bot))
```


### Expected Results

a working SlashCommandGroup

### Actual Results

```2022-01-01T00:48:19.333796+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/cog.py", line 189, in __new__
2022-01-01T00:48:19.333896+00:00 app[worker.1]: new_cls.__cog_commands__ = tuple(c._update_copy(cmd_attrs) for c in new_cls.__cog_commands__)  # type: ignore
2022-01-01T00:48:19.333896+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/cog.py", line 189, in <genexpr>
2022-01-01T00:48:19.333990+00:00 app[worker.1]: new_cls.__cog_commands__ = tuple(c._update_copy(cmd_attrs) for c in new_cls.__cog_commands__)  # type: ignore
2022-01-01T00:48:19.333997+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/commands/commands.py", line 992, in _update_copy
2022-01-01T00:48:19.334231+00:00 app[worker.1]: return self.copy()
2022-01-01T00:48:19.334238+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/commands/commands.py", line 965, in copy
2022-01-01T00:48:19.334456+00:00 app[worker.1]: name=self.name,
2022-01-01T00:48:19.334528+00:00 app[worker.1]: AttributeError: 'SlashCommandGroup' object has no attribute 'name' 

### Intents

discord.Intents.all()

### System Information

- Python v3.8.10-final
- py-cord v2.0.0-alpha
    - py-cord pkg_resources: v2.0.0a4728+g67f1e139
- aiohttp v3.8.1
- system info: Linux 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021

### Checklist

- [X] I have searched the open issues for duplicates.
- [X] I have shown the entire traceback, if possible.
- [X] I have removed my token from display, if visible.

### Additional Context

`py-cord 2.0.0a4706+g758ff5f1  <-- SlashCommandGroup worked fine`

`py-cord-2.0.0a4728+g67f1e139  <-- SlashCommandGroup produces the error above`


Discussion:
Either I am dumb or the commits does not exist

> Either I am dumb or the commits does not exist

Gotta drop the prefix "g":

https://github.com/Pycord-Development/pycord/commit/67f1e139
https://github.com/Pycord-Development/pycord/commit/758ff5f1
I can reproduce this as well, btw.

Resolving patch:
diff --git a/discord/commands/commands.py b/discord/commands/commands.py
--- a/discord/commands/commands.py
+++ b/discord/commands/commands.py
@@ -855,6 +855,8 @@ def __init__(
             name=name,
             description=description,
         )
+        self.name = name
+        self.description = description
         self.subcommands: List[Union[SlashCommand, SlashCommandGroup]] = self.__initial_commands__
         self.guild_ids = guild_ids
         self.parent = parent


Test patch: