mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
Revert `mock and mockmsg` back to a guild_only state (#5926)
This commit is contained in:
parent
eb613ea154
commit
3cb17116be
@ -359,9 +359,10 @@ class Dev(commands.Cog):
|
||||
else:
|
||||
await ctx.send(_("The REPL session in this channel is now paused."))
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.command()
|
||||
@checks.is_owner()
|
||||
async def mock(self, ctx, user: discord.User, *, command):
|
||||
async def mock(self, ctx, user: discord.Member, *, command):
|
||||
"""Mock another user invoking a command.
|
||||
|
||||
The prefix must not be entered.
|
||||
@ -372,9 +373,10 @@ class Dev(commands.Cog):
|
||||
|
||||
ctx.bot.dispatch("message", msg)
|
||||
|
||||
@commands.guild_only()
|
||||
@commands.command(name="mockmsg")
|
||||
@checks.is_owner()
|
||||
async def mock_msg(self, ctx, user: discord.User, *, content: str = ""):
|
||||
async def mock_msg(self, ctx, user: discord.Member, *, content: str = ""):
|
||||
"""Dispatch a message event as if it were sent by a different user.
|
||||
|
||||
Current message is used as a base (including attachments, embeds, etc.),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user