When i run this code, it raises a 403 Forbidden exception : Cannot send messages to this user. How can i bypass that and so dm banned & kicked users ?
if user.dm_channel == None:
await user.create_dm()
await user.dm_channel.send(
content=f"You have been kicked from {server} by <@{message.author.id}> (reason : {splited[2]})")
Send the message to the user's DM channel before you kick them.