Skip to content

Commit ce734bc

Browse files
authored
Mistake in an example (#1126)
* Update timeout.py * Update timeout.py
1 parent 17c4dad commit ce734bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/timeout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
bot = discord.Bot()
66

77

8-
@bot.command()
8+
@bot.command(guild_ids=[GUILD_IDS])
99
async def timeout(ctx, member: discord.Member, minutes: int):
1010
"""Apply a timeout to a member"""
1111

1212
duration = datetime.timedelta(minutes=minutes)
1313
await member.timeout_for(duration)
14-
await ctx.reply(f"Member timed out for {minutes} minutes.")
14+
await ctx.respond(f"Member timed out for {minutes} minutes.")
1515

1616
"""
1717
The method used above is a shortcut for

0 commit comments

Comments
 (0)