#SyncWarning: Failed to overwrite global commands due to 'flag_value' object has no attribute 'values
1 messages · Page 1 of 1 (latest)
send full traceback
ok wait
C:\Users\\AppData\Local\Programs\Python\Python312\Lib\site-packages\disnake\ext\commands\common_bot_base.py:321: RuntimeWarning: coroutine 'setup' was never awaited
setup(self)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Successfully loaded cogs.maps!
Successfully loaded cogs.players!
Successfully loaded cogs.help!
Successfully loaded cogs.rolelist!
Successfully loaded cogs.leaderboard!
Successfully loaded cogs.autorespond!
C:\Users\\AppData\Local\Programs\Python\Python312\Lib\site-packages\disnake\ext\commands\interaction_bot_base.py:913: SyncWarning: Failed to overwrite global commands due to 'flag_value' object has no attribute 'values'
warnings.warn(
might be related to contexts or install_types on some command, make sure you're passing the right object there
Might be contexts, because Im used to use dm_permission
But that returned error
And I changed it to this: contexts=InteractionContextTypes.guild
dont know if its correct
Try InteractionContextTypes(guild=True), this should give InteractionContextTypes instance instead of flag_value
i will try to change in all cogs
nope still
C:\Users\AppData\Local\Programs\Python\Python312\Lib\site-packages\disnake\ext\commands\interaction_bot_base.py:913: SyncWarning: Failed to overwrite global commands due to 'flag_value' object has no attribute 'values'
warnings.warn(
ping me please so i see new messages
It's a flag enum thing, the parameter expects an instance of it, but the attribute isn't one
Try InteractionContextTypes(guild=True)
right I can't read
You still pass in .attribute instead of an instance somewhere
yeah i really i do, i changed everywhere expect main bot's class...
but yeah it works now, i got only choices errors now, thanks for help guys
Marked the thread as solved. If your question has not been answered, please open a new thread in #1019642966526140566.