We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c4dad commit ce734bcCopy full SHA for ce734bc
examples/timeout.py
@@ -5,13 +5,13 @@
5
bot = discord.Bot()
6
7
8
-@bot.command()
+@bot.command(guild_ids=[GUILD_IDS])
9
async def timeout(ctx, member: discord.Member, minutes: int):
10
"""Apply a timeout to a member"""
11
12
duration = datetime.timedelta(minutes=minutes)
13
await member.timeout_for(duration)
14
- await ctx.reply(f"Member timed out for {minutes} minutes.")
+ await ctx.respond(f"Member timed out for {minutes} minutes.")
15
16
"""
17
The method used above is a shortcut for
0 commit comments