Skip to content

Instantly share code, notes, and snippets.

View Max2408's full-sized avatar
🖥️
beCoditive

Max Max2408

🖥️
beCoditive
View GitHub Profile
@Max2408
Max2408 / About.md
Last active May 2, 2024 19:46
Making Exchange Reselling Easier For Sim companies with Price Notifications!!!
@Max2408
Max2408 / discordjs-buttons-using-api.md
Last active May 31, 2021 09:00
How to Use Buttons in Discord.js With Discord API

Using Buttons in Discord.js Using Discord API

As you know discord.js will support discord buttons later this year, so it is hard for discordjs bot developers to use buttons in their bots. There are some npm packages but they are not customizable and not reliable.

So i will be showing you how can you create buttons in discord.js using Discord API v9

Setting Everything Up

So before we start making buttons, we have to do some default setup.

  const Discord = require('discord.js')
@Max2408
Max2408 / discordjs-slash-commands.md
Last active July 23, 2021 19:22
Everything you need to know about Slash Commands in Discord.js

Everything you need to know about Slash Commands in Discord.js

This is the Most Advance Explaination on slash commands in discord.js

Note that discord.js doesn't officially support using client.api, this is basically just a workaround until they release complete support. Do not ask for help with client.api in the discord.js server.

Note that slash commands won't show in a server unless that server has authorized it with the applications.commands oauth2 scope (not just the bot scope).

This does not require a discord.js update! It should work as long as you're using discord.js v12 it will work fine.