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 47c024b commit 9e646c6Copy full SHA for 9e646c6
examples/timeout.py
@@ -9,7 +9,7 @@
9
async def timeout(ctx, member: discord.Member, minutes: int):
10
"""Set timeout on a member"""
11
12
- now = datetime.datetime.utcnow() # get current time
+ now = discord.utils.utcnow() # get current time
13
until = now + datetime.timedelta(minutes=minutes) # add the duration
14
await member.timeout(until=until)
15
await ctx.respond(f"Member timed out for {minutes} minutes.")
0 commit comments