Category "discord"

How to count amount of reactions in Discord.js v13?

I have tried so many things out, here's my current code var green = toString(msg.reactions.cache.get('🟩').count); var red = toString(msg

Discord api join guild, unauthorized 401 error

I'm trying to authenticate a user with Discord oauth2, then add this user to the guild. I'm also using Passportjs to authenticate the user, so the DiscordStrate

Coinflip Embed Command Discord.py?

How would I go about making a coinflip embed command. What I want it to do is make a discord embed saying Coinflip | (Bot Name) as the header, then the field is

Ignoring Exception in_onmessage

I am new to making Discord Bots using Discord API and python, and apparently my code is acting a bit strange since i added Databases, i have used replit for the

Connection to monitor closed MongoDB

I am trying to run my discord bot but I get this error [12/4/2021, 2:06:02 AM] - [INFO] - [ShardManager] Started 1 shards [12/4/2021, 2:06:28 AM] - [ERROR] - co

Filter out bots from member count in client status

I want to make my bot activity say "Watching + Member Count (not include bots)". I did some steps, here is my code: client.once('ready', () => { set

Missing argument is required | Discord.py

I tried to make an command which displays mentioned users avatar. This is the code: @client.command(aliases=['av']) async def avatar(ctx, *, member: discord.Mem

discord bot on_guild_role_update, problem with permissions

I tryed to make logs with admin`s activity how to specify the permission instead of these incomprehensible numbers @bot.event async def on_guild_role_update(bef

My Discord bot won't reply back with the Embed I made

I don't know much about coding myself but I followed someone's video (specifically this video:https://www.youtube.com/watch?v=tQjpv0OO5pA) on how to make embeds

How get and edit message by ID in discord.net?

To get channel I use Client.GetChannel(Bot.ChannelStatisticsID) To get message I use Channel.GetMessageAsync(Bot.MessageStatisticsID) How edit message?

Sending a message into all servers where bot is

How do I send one message per guild that my bot is in? It doesn't matter which channel it will be, but I don't know how to code it. I finally came up with that

"Help" Command (Defectio.py, similar to discord.py)

I am using revolt.chat which has a similar API to discord.py called defectio. This is the documentation for the default help command https://github.com/Darkflam

on_member_join(member) is never called in discord.py

I am making a discord bot with discord.py on python 3.8.6. My other functions, such as on_ready and other commands, work. However, on_member_join is never calle

403 Error when setting application command permissions on Discord

My bot got a 403 error, even though it never happened before, and the code hasn't changed at all. throw new DiscordAPIError(data, res.status, request);

TypeScript(err:2532): object is possibly undefined dispite null/undefined check

I've been writing a Discord-bot in TypeScript and I added a command that retrieves information from an airport. The only thing you have to provide is the ICAO c

Discord bot adding reactions to a message discord.py (no custom emojis)

I've been trying to make a bot using discord.py add a reaction to a message using discord.py after reading this (which is not what I wanted because I am not usi

client.run("TOKEN") blocking issue (python & discord.py)

I know that client.run("TOKEN") blocks off any code following it...I'm trying to have my program print a message (in my case when a Nike product restocks), and

A discord bot activating another bot via /commands or detect user who used a bot command

Ok, so Im trying to do the following rn: Im using the Disboard bot and beforehand rewarded users for bumping. That wasnt a problem, because the command was "!d

Command for posting user's avatar

@bot.command(aliases=['av']) async def avatar(ctx, *, avamember : discord.Member = None): userAvatarUrl = avamember.avatar_url await ctx.send(userAvata

Discord Music Bot

I am creating a discord bot that plays music. It successfully joins a channel but then returns an error when searching for music. This is my code: @client.comma