mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Image] Remove V2 relics from command decorators (#2138)
This commit is contained in:
parent
a3c36d4bde
commit
32b4c6ce86
@ -135,7 +135,8 @@ class Image:
|
|||||||
await self.settings.imgur_client_id.set(imgur_client_id)
|
await self.settings.imgur_client_id.set(imgur_client_id)
|
||||||
await ctx.send(_("Set the imgur client id!"))
|
await ctx.send(_("Set the imgur client id!"))
|
||||||
|
|
||||||
@commands.command(pass_context=True, no_pm=True)
|
@commands.guild_only()
|
||||||
|
@commands.command()
|
||||||
async def gif(self, ctx, *keywords):
|
async def gif(self, ctx, *keywords):
|
||||||
"""Retrieves first search result from giphy"""
|
"""Retrieves first search result from giphy"""
|
||||||
if keywords:
|
if keywords:
|
||||||
@ -158,7 +159,8 @@ class Image:
|
|||||||
else:
|
else:
|
||||||
await ctx.send(_("Error contacting the API."))
|
await ctx.send(_("Error contacting the API."))
|
||||||
|
|
||||||
@commands.command(pass_context=True, no_pm=True)
|
@commands.guild_only()
|
||||||
|
@commands.command()
|
||||||
async def gifr(self, ctx, *keywords):
|
async def gifr(self, ctx, *keywords):
|
||||||
"""Retrieves a random gif from a giphy search"""
|
"""Retrieves a random gif from a giphy search"""
|
||||||
if keywords:
|
if keywords:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user