#Timeout Command
1 messages · Page 1 of 1 (latest)
Hey! Once your issue is solved, press the button below to close this thread!
How so? what part are you stuck on?
okay so
got this and its not providing any form of TO
Does the bot have the needed perms to timeout that user?
oh dear
you made the mistake of using datetime.now()
most likely whats happening is that your computers timezone is 4+ hours behind utc
discord uses utc extensively, but now() uses your timezone's time
so if your current time is 4 hours behind, adding three hours means the timeout end time is still much before the current time in utc
anyways your solution is using interactions.Timestamp.utcnow() or:
from datetime import datetime, timezone
datetime.now(timezone.utc)
datetime.utcnow() is likely to screw you over for many reasons (mostly that it doesnt set the actual timezone of the datetime as utc for some reason), try not to use it 😅
im in UTC 
sus /j
okay let me take a look at the code rq
ah
...um, timeouts parameters dont include end
im not sure how this isnt erroring out horribly
because it should
lol
pretty sure i got an error saying end didnt exist or smth so changed it to be this instead
communication_disabled_until
thats what it is lol
or you could have just passed it in with no kwargs
hold up, this command was one of the first ones i added and ive been using coc.py the past couple hours
i have my suspicions that you did a basic port from some other library that used end
Hmm idk I’ll see