Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. This post was edited and submitted for review last month and failed to reopen the post: Original close reason(s) were not resolved Improve this question The problem: I
Tag: discord
Discord Nickname Command with a specific format
I am relatively new to coding. I already coded a bot with a “nickname changer”. My problem is, that I want it to change to a specific format: “!nick @JohnDoe John” changes name to “JohnDoe [John]” It is for a private server, where everyone can see the users Gametag and their real name. Thanks in advance for your help 🙂
DiscordJS ticketinfo TypeError: results.transcripts is not iterable
I’m making a ticketinfo command that get’s information about a ticket that’s in my database. I’m trying to catch the information from the database and put in into my embed. The embed is being send to the user that runs that command. It seems to not work. Why isnt it working? My Code: Error: Answer It seems, that result.transcripts either
Why can’t it locate the directory?
Was cooding a command handler in discord.js but ran into some trouble along the way, from my limited knowledge in javascript and discord.js the code should at least be able to find the directory. Said code that’s causing the headache: Answer The path passed to fs.readdirSync() is interpreted as relative to the current working directory, not to the JS file,
how can i move users with reaction
im trying to create bot that move users when they react in message create channel and move the user to the channel that was created , err = Cannot read property ‘setChannel’ of undefined Answer You need a GuildMember to access their voice state. Your mem variable is wrong so, you need to get the member instead.
Kick command access to everyone
So the code below is my Kick.js but I want it so that the mod role can only use the kick command Answer Check for the message.member permissions If you want to check for specific role
My Discord bot does not respond to my messages
I am making a bot using Python. I am very new to coding with Python and I don’t understand a lot of things, I am just following a tutorial(https://youtu.be/j_sD9udZnCk) but I am stuck with my bot not responding to my messages. It goes online and offline as intented but it does not respond to my messages. Also it is an
How to fix code not moving channel under category
The code created category and channel and gave me this error: TypeError: Cannot read property ‘hasOwnProperty’ of undefined without moving the channel in the category This is the code to the error: Answer The channel.setParent call fails on this line since category is undefined. Looks like the guild does not have a category channel named ‘Tickets’. Since you’re creating the
Kick command | discord.js
I’ve made a kick command for my bot, everything works fine but everyone can use it. I want that only people who have perms to use this command. Is there any solution to fix this problem? This is my code: Please help me! Thank you! Answer Use:
Change footer regarding on image in discord.js
When the image of an embed is randomized, is there a way to change the footer regarding on the image that is used in a message? I have tried if(images = “[link]”) embed.setFooter(“Hello!”) But then this footer is on every image, not just on one. Now three “=” because of the comment instead of 1 🙂 Complete code: Full code