Skip to content
Advertisement

Tag: discord

How to respond with embeds

Currently I am trying to work on my bot and update its responses. Right now I am trying to use the code below to make it respond with the random embeds I made. For some reason when doing using this code the bot either responds with “NaN” or “3”? Answer The purpose of: Is to generate a pseudo-random integer between

Small discord.js Avatar image

Avatar issue example I am trying to do the discord.js avatar command and it works. It sends the image it needs to send but the issue is that the image sent is small compared to other bots. Am using the command handler in the discord.js guide Answer You can add a size option like how you did with you format

Is there a difference between GuildMemberManager.resolve() and Guild.member() in discord.js?

Guild.member() returns the GuildMember form of a User object, if the user is present in the guild. It takes a UserResolvable as a parameter (user ID or object). GuildMemberManager resolves a GuildMemberResolvable to a GuildMember object. What confused me is that a GuildMemberResolvable can be either a GuildMember object or a UserResolvable. First of all, why would anybody need to

How do I insert emojis into a nickname in discord.js?

Every time I try to do that, the emoji just changes into a question mark. Here’s my code: Answer Your message variable in the above code is inconsistent. You used ‘msg’ to catch the return value but used ‘message’ to react. Keep it consistent, otherwise, you might face errors. Also, a bot cannot change the nickname of the owner of

Discord.JS How to wait for member reaction

I am making bot to manage my multiple Discord guilds. And I’d like to make confirmation system, like: User does X thing, Bot sends message in sufficient channel, Bot waits for user to react with :thumbdsup: or :thumbsdown: up to 60 seconds If thumbs up, do A, else – do B. If time is up, do C action How can

Advertisement