Reputation: 7
Ok, so I want to know how to make a bot send a message to the user who boosted the server. So like for instance somebody boosted the server and the bot sent them a message. The following is an example of what I'm thinking.
Client.event()
async def on_boost():
booster.send(message)
Upvotes: -1
Views: 2559
Reputation: 61
@client.event
async def on_message(message):
if "MessageType.premium_guild" in str(message.type):
await message.channel.send("Thanks for server boost")
use this
I left a short message because I am not good at English. I'm sorry if I offended you. If you leave a comment, I'll answer it.
Upvotes: 1
Reputation: 1893
Normally when someone boosts, a message is put into the discord service channel of a guild. I assume that you can have an if
statement in an on_message
event that will trigger if a message is in the format of an boost message + it's author is either the server or None
Upvotes: 0