Sending a DM to a user who the bot does not share a server with

I'd like to make a ban appeal process for my server/bot. When a user is banned using either the context menu or the systems /ban command, the guildBanAdd event is fired, I would then like to send the user a DM notifying them that they were banned and how to appeal it. However, seeing as once the guildBanAdd event is fired, that user is no longer in the server at that point, so I don't think it's possible for the bot to send them a DM, correct? Or am I missing something?
9 Replies
MrMythical
MrMythical•2y ago
You cannot send someone a dm with a bot without any mutual servers
probablyraging
probablyraging•2y ago
Yeah, that's what I figured, I couldn't comprehend how it would work myself. But I do see lot's of server with implemented ban appeals, such as this server, any idea how they do it? The only other thing I could think of is the banned user would have to create a brand new account, join the server (ban evade) and contact a staff member, which sounds even worse lol
MrMythical
MrMythical•2y ago
Pretty sure in this server they just do what you said at the end, don't think we have "implemented ban appeals"
monbrey
monbrey•2y ago
Yeah we dont
probablyraging
probablyraging•2y ago
I see, well I appreciate the help 🙂
monbrey
monbrey•2y ago
The bot sends you a DM telling to appeal to a mod, then bans you
probablyraging
probablyraging•2y ago
Is the banning process done via the bot, or using Discord built in ban features?
monbrey
monbrey•2y ago
Bot If its someone we banned we're not super concerned with making it easy for them to come back
probablyraging
probablyraging•2y ago
Yeah, that makes sense for sure lol thanks again for the help 👌