dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
665 stars 155 forks source link

The message is not being sent #509

Closed MIHUTKA3 closed 1 year ago

MIHUTKA3 commented 1 year ago

Summary

The message is not being sent

Reproduction Steps

I want to write a bot that will write to users in the bos, but it does not do this

Code

@bot.command()
async def ping(ctx):
    for member in ctx.guild.members:
        try:
            dm = await member.create_dm()
            await dm.send('1')
        except:
            continue
    print('1')

Expected Results

I want to write a bot that will write to users in the bos, but it does not do this

Actual Results

A Dm is created but no messages are sent

System Information

Checklist

Additional Information

No response

dolfies commented 1 year ago

This issue provides absolutely no info. Please open a new one and properly fill out the bug form.