So I've tried this code, but I can't figure out why it isn't working. It only sends my bot name instead of sending all the users in my server
@bot.event
async def on_message(message) :
if message.content.startswith('?users'):
guild = bot.get_guild(server id there)
print(", ".join([member.name for member in message.guild.members]))