Unintentional trailing comma that creates a tuple

pylintalready detects this as a problem (as of version 1.7). For example, here’s my tuple.py: “””Module docstring to satisfy pylint””” def main(): “””The main function””” thing = 1, print(type(thing)) if __name__ == “__main__”: main() $ pylint tuple.py No config file found, using default configuration ************* Module tuple R: 5, 0: Disallow trailing comma tuple (trailing-comma-tuple) … Read more

Discord Bot can only see itself and no other users in guild

Enable the server members intent near the bottom of the Bot tab of your Discord Developer Portal: Change the line client = discord.Client() to this: intents = discord.Intents.default() intents.members = True client = discord.Client(intents=intents) This makes your bot request the “members” gateway intent. What are gateway intents? Intents allow you to subscribe to certain events. … Read more