Was your bot denied for responding to other bots? Try out some of these code snippets to help with that
Feel free to provide snippets that we can add to this list in the comments, or in #bfd on Discord.
- discljord (Clojure)
- discordcr (Crystal)
- Discord.Net (C#)
- DSharpPlus (C#)
- dscord (D)
- DiscordGo (Go)
- DisGord (Go)
- catnip (Java)
- Discord4J (Java)
- Javacord (Java)
- JDA (Java)
- Discord.JS (Javascript)
- Eris (Javascript)
- Discordia (Lua)
- discordnim (Nim)
- RestCord (PHP)
- Yasmin (PHP)
- [discord.py Async (Python)](#user-content-discordpy-async-python]
- discordrb (Ruby)
- discord-rs (Rust)
- AckCord (Scala)
- Sword (Swift)
-
// Provided by Donovan_DMC#3621 client.on("message",async(message) => { if(message.author.bot) return; });
-
// Provided by Donovan_DMC#3621 // This Library doesn't provide any events, as it doesn't connect and listen to the gateway, so there is no need for ignoring anything in this sense.
-
// Provided by Donovan_DMC#3621 // untested $client->on('message', function ($message) { if($message->author->bot) return; });
-
# Provided by Habchy#1665 @bot.event async def on_message(message): if message.author.bot: return
-
// Provided by BricksAndPieces#8260 @Override public void onMessageReceived(MessageReceivedEvent event) { if(event.getAuthor().isBot()) return; // extra stuffs }
added code for JDA, provided by BricksAndPieces#8260