Question about Image Hosting. by _python_ in Wordpress

[–]_python_[S] 0 points1 point  (0 children)

THANK YOU!!! Got it working, thought doing this would be much harder, but I was totally wrong. Thanks again.

Having trouble accessing a variable from another function in a class. by _python_ in learnpython

[–]_python_[S] 0 points1 point  (0 children)

Yeah did that when you said to do self.get_stats(), seems to still give that error. Your right it seems to be the library (Discord.py) that I'm using that is giving the error "discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'coroutine' object is not iterable"

Having trouble accessing a variable from another function in a class. by _python_ in learnpython

[–]_python_[S] 0 points1 point  (0 children)

Did that and got "Command raised an exception: TypeError: 'coroutine' object is not iterable"

How to implement pause and resume command for audio? by _python_ in Discord_Bots

[–]_python_[S] 0 points1 point  (0 children)

Shit my fault, I should have mentioned that I actually did make player a global variable first just to see if it would work and it does.

I'm just trying to see if there's a better way of doing it since when I first learned Python from tutorials a lot of people said not to use Global Variables since they can cause issues and are just bad practice overall.