Slash Commands on Discord - discord

I am the owner of the discord server. My slash commands won't work but they'll work on the app on my phone.
Additionally, if I log out and log in with an alternate account and go to the server, the slash commands work in that instance too, which leads me to believe it's not a missing update.
Any thoughts?

Related

Read messages in a discord channel without running client

Is there a way to read the messages on a discord channel using discord.py without running the client? The use case is, I have a lambda function that runs slash commands so that I don't have to have a permanent machine listening. This works fine. I want to make a slash command to read all the messages in the channel and save the attachments in the messages in the channel. All the examples I have seen are to make text bots declaring the commands and end with:
client.run('your-token-here')
Which means it needs to be constantly up. Is this possible?

Little problem with slash commands (discord.js v13)

Slash commands work well, no hassle, set with simple code: bot.commands.set(command.name, command)
But I noticed that they are set only when the bot is running and it is added to the Discord server. If the bot is already on the Discord server, and a new command appeared later, then command does not appear in the list. I fix this by a second invitation, but commands in the list start to double, as if they were cloning yourself. Can this be fixable?
You can remove slash commands either from global commands or server commands. Fetching the commands then logging or using another method to show you the command id will allow you to use the delete method.
You can remove slash commands by using bot.application.commands.delete('id here'). (global commands) where bot is the DiscordClient or guild commands: guild.commands.delete('id here'), where guild is the targeted Guild.
These are both functions, and require a command id. You can fetch command ids using: bot.application.commands.fetch().then(c=> console.log(c))(global cmds), guild.commands.fetch().then(c=>console.log(c))(server commands)

Not managing to transfer my code onto a different bot

So I have my bot which I now transferred onto a Heroku server, with this I made a new bot which I named ex Test Bot, but for some reason when I went into my config.json with the code
{
"token": "DISCORD BOT ID THING"
}
Now when I change the following to my test bots ID which I will run from my PC, it gives me this wierd error
I really have no clue searched online couldnt fined anthing, I hope one of you guys could help. Thanks!
You're probably using an intent that you don't have permission to use or isn't enabled.
You'll have to go to Discord Developer Portal, choose your application, go to the Bot section, and enable all the intents. (Or the ones you are using.)
Note that once your bot reaches 100 or more servers, this will require verification and whitelisting.
Bot Verification and Data Whitelisting

Discord.js New "/" commands

Discord have recently booted out a new feature allowing you to add commands to the server. Pressing "/" on pc will bring up a little tab of commands. There is a feature for your bot to add to the list.
Anyone know how to do this?
Currently discord.js does not support slash commands. Advaith1 on GitHub has a tutorial on a workaround that you can read here

Discord bot to check if a minecraft server is online

I was wondering if anyone knew of a discord bot that will send a message in a discord sever when a minecraft server is online and send a message when it goes back offline
I've done some googling and can't seem to find one that does what I want there are a couple that u have to manually type commands for and others that appear in the sidebar of discord I simply want one that will do it automatically is there one that exists like this already?
I didn't found any not that already did this, but you can do this pretty easily with the Discord API.
Here is a a script I found that send a message to the server : https://gist.github.com/ianklatzco/769d9e3a991dc2f443a2e105b0157117
You can adapt it to ping the server in a if statement to send if it is online or not
(This script is in python but the Discord api works in more languages)

Resources