How can I fix my delete command? #6384
-
My bot is supposed to delete some information (option) from my json file (data.json). I've tried several codes but it doesn't work. I don't get any errors, so I'm clueless. Hopefully someone can help me. Thanks
|
Beta Was this translation helpful? Give feedback.
Answered by
bandwiches
Feb 4, 2021
Replies: 1 comment
-
All you did was remove the index from the variable in memory. In other words, you removed the index from the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
coffeekek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
del guild_content[id]
All you did was remove the index from the variable in memory. In other words, you removed the index from the
guild_content
variable within python, but you never sent the command to Discord to remove the message.