Skip to content

Tutorial Guruji

Online Free Tutorials Guruji Guide & Materials – Solved Questions Answers

  • Home
  • Tutorials
    • Java
    • DBMS
    • Linux
    • for loop
    • Bitcoin Transaction Fees
    • Mathematics Real Analysis
    • Shell Script
    • Bitcoin Core
    • Bitcoin Security
    • Grammar
  • About Us
  • Contact Us
Home » discord.js

Tag: discord.js

Am I properly checking if the message author has a certain role?

Node.js April 13, 2021

I’ve run into an error. I’m trying to find to find if a user who has done a command has a certain role, when I tested it with the role it would send “You do not have the staff role” even …

How to handle an null response.json? (Javascript)

JavaScript April 10, 2021

I’m currently trying to handle a NULL response to a REST API Code: const { name } = await fetch(`api link`).then(response => response.json()); Now normally if there is an error I would simply use …

Kicks author message from the voice when he does a bad command

JavaScript April 9, 2021

hey nice day to everyone! i would like to have a code that if someone called “A” doesnt do a command as expected just kicks that “A” from the voice channel, i would like to …

Discord.js Issue with .includes function

JavaScript April 7, 2021

I’m trying to make my bot to return a message when the arg isn’t one of the colors in the variable but it keeps sending this message: There are two issues I couldn’t fix the bot sends both messages …

How to ignore everyone and here in message.mentions.has(“”)?

JavaScript April 5, 2021

client.on(“message”, message => { if (message.mentions.has(“665761320284053538”)) …so on. The following gets triggered when @here or #everyone are mentioned. How can I …

How do I send a message to a specific channel without a message object Discord.js

JavaScript April 5, 2021

I’m trying make my bot to send a random question from a .json file every two hours into a specific channel. It’s not inside any event listener so I don’t have a message object to use to send messages. …

How do I check if a permission is set to neutral (“/”) with discord.js?

JavaScript April 5, 2021

I want to check if a channel override is set to neutral/null/”/”. I know how to set a permission to neutral, but not how to check if it is in that state. Any help would be highly appreciated….

How can I define @everyone? (discord.js)

JavaScript April 5, 2021

I’m trying to create private channel script in discord.js v12 that once a member joins, it creates a private room which only the person who created can join and others can’t (only with a command). I …

Discord.js reply if mentioned only without strings

JavaScript April 5, 2021

I want that if someone mentions my bot without saying anything else in the same message, that the bot replies to it. Example: @bot And not: @bot hi This is my current code: client.on(‘message’, …

Get discord member’s roles by ID

JavaScript April 4, 2021

I am looking to get the id of every role a user has. the user being the message author in my case. i’ve tried various things suggested such as let roles = message.author.roles.id = [] and message….

Posts navigation

Page 1 Page 2 … Page 5 Next page>
Skip to footer

Recent Articles

  • Item in list in dictionary Python
  • how do I reference first argument of an enumeration?
  • Convert an array column into multiple columns Python
  • How to compute counts on a pandas DataFrame column in Python, given an input list of values?
  • How to display legend in toolbox in Charts.js?

What You Want To Learn?

  • Android
  • AngularJS
  • Bitcoin Core
  • Bitcoin Exchanges
  • Bitcoin Security
  • Bitcoin Transaction Fees
  • Bitcoin Transactions
  • C#
  • C++
  • DBMS
  • for loop
  • Grammar
  • HTML
  • Java
  • JavaScript
  • jQuery
  • Linux
  • Mathematics Real Analysis
  • Node.js
  • PHP
  • Python
  • React JS
  • Shell Script
  • Travel
  • WordPress

Contact Details

Web: tutorialguruji.com
For Advertisement - Contact Us Today.
Tutorial Guruji