Skip to content

Commit

Permalink
rename emoji commands
Browse files Browse the repository at this point in the history
  • Loading branch information
solumath committed Apr 11, 2024
1 parent 29f27e2 commit d419bb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cogs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ Cog for dynamically changing config.\
Cog for managing server emojis. Download emojis and stickers. Get full size of emoji.\
**Commands:**

- /emoji get_emojis
- /emoji get_emoji
- /emoji all
- /emoji get
---

### [Error](error/cog.py)
Expand Down
4 changes: 2 additions & 2 deletions cogs/emoji/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ async def emoji(self, inter: disnake.ApplicationCommandInteraction):
await inter.response.defer(ephemeral=self.check.botroom_check(inter))

@cooldowns.default_cooldown
@emoji.sub_command(name="get_emojis", description=MessagesCZ.get_emojis_brief)
@emoji.sub_command(name="all", description=MessagesCZ.get_emojis_brief)
async def get_emojis(self, inter: disnake.ApplicationCommandInteraction):
"""Get all emojis from server"""
if not os.path.exists("emojis.zip"):
await self.download_emojis(self.base_guild)
await inter.send(file=disnake.File("emojis.zip"))

@cooldowns.default_cooldown
@emoji.sub_command(name="get_emoji", description=MessagesCZ.get_emoji_brief)
@emoji.sub_command(name="get", description=MessagesCZ.get_emoji_brief)
async def get_emoji(self, inter: disnake.ApplicationCommandInteraction, emoji: disnake.PartialEmoji):
"""Get emoji in full size"""
await inter.send(emoji.url)
Expand Down

0 comments on commit d419bb5

Please sign in to comment.