Тёмный

Discord Python - Send Direct Messages & Reply to Messages 

Michael Kitas
Подписаться 8 тыс.
Просмотров 14 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@alexandratravels
@alexandratravels 2 года назад
Keep up the good work🔥🙏
@immortalsun
@immortalsun Год назад
Thanks for the help! 💙
@YozyYoutube
@YozyYoutube Год назад
Very helpful, thank you! Is there a way to make the bot reply to a message specified by message ID?
@MichaelKitas
@MichaelKitas 11 месяцев назад
Absolutely, you can use the fetch_message(ID) method on a text channel object to retrieve any message by its ID, then use reply() to respond directly to that message. Just ensure your bot has necessary permissions in the server. Happy coding!
@mrkian5400
@mrkian5400 Год назад
Thanka mate and i have 1 question , what if we put our token instead of bot token ? It will send message from our account right ?
@MichaelKitas
@MichaelKitas 11 месяцев назад
In theory, it might be possible to use a user account token to automate certain actions on Discord, essentially creating a "self-bot." However, this practice is strongly against Discord's Terms of Service and can result in the permanent suspension of the user account. Discord has measures in place to detect such behavior, and they are quite strict about enforcing this policy.
@firstlast-pi3rw
@firstlast-pi3rw Год назад
what's the theme u are using?
@MichaelKitas
@MichaelKitas Год назад
Bearded Theme - Arc
@philippposchmann8993
@philippposchmann8993 Год назад
Great tutorial, thanks! Is there any way to run discord commands like this? When I replace my message with a slash command, it just sends it as a string instead of executing the command.
@MichaelKitas
@MichaelKitas Год назад
No idea, I am going to research and make a video on that if we can do that. Check this out: discordpy.readthedocs.io/en/stable/ext/commands/commands.html
@lowlycube
@lowlycube Год назад
This is great! But, is there a way to save the author of a message to a variable and then send the DM later in the code?
@MichaelKitas
@MichaelKitas Год назад
Yes, you can setTimeout to delay the dm. For saving it locally on a file, I think you can save the author id, and use that to send message later on.
@gell9875
@gell9875 2 года назад
thanks mate this was helpful
Далее
"Breaking Open" A Discord Nitro Generator
9:16
Просмотров 1,3 млн
Самая сложная маска…
00:32
Просмотров 1,1 млн
Using Python Requests to Send Discord Messages
5:02
Просмотров 15 тыс.
Can You Get Every Discord Badge?
9:44
Просмотров 2,4 млн
Sending EMAILS with PYTHON: 5 minute tutorial
4:38
Просмотров 24 тыс.
How to use Discord decorators for your slash commands!
7:42
Discord PAGINATION: All You Need to Know
10:38
Просмотров 13 тыс.