Category "discord"

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

discord.js reaction method outputs wrong emoji

I need help with my current method which doesn't get the right reaction emoji. But I want it to get the right Emoji. Can someone help me? bot.on('messageReactio

findOneAndUpdate is not a function of mongoose

I know this question has been answered before but I can't seem to implement the changes into what im working with. I'm trying to create a daily command that rew

_Context.send() got an unexpected keyword argument 'files'

Im using interactions.py and I cant figure out how to respond with an image await ctx.send(files="86.png")

Discord.js Adding Emojis to a send message and grab the message id

Hey Stack Overflow Community, I have another question in regard to discord.js.I want to send a message and add an emoji to it, from which I later want to get th

Discord onGuildMemberJoinEvent is not working

I have this problem with Discord JDA, and I'm completely frustrated about it. I hope you can help me. The problem is my console won't print a message when a use

Downloading attachments with Discord API in python

I am creating a bot to scrape images from a discord channel. The images can come in two ways: 1) A link such as: https://cdn.discordapp.com/attachments/XXXXXXX

Dependency injection error pops up whenever I try to install a certain Discord Package

I'm really new to programming, but I felt like trying out some bot-development for my discord server, like one that will occasionally say hello to people when t

Add role to user from DMs?

So I'm making a verification bot for one of my Discord Servers, and I've come across a problem. Purpose: When the user first joins, they will be only allowed t

"on_raw_reaction_add" working but "on_raw_reaction_remove" not returning guild?

I coded on_eaw_reaction_add and it works just fine @commands.Cog.listener() async def on_raw_reaction_add(self, payload): msgID = 754487460142