Skip to content

Instantly share code, notes, and snippets.

View AngeloCore's full-sized avatar

Angelo II AngeloCore

  • Bulgaria
  • 07:26 (UTC +03:00)
  • X @angiva7
View GitHub Profile
@AngeloCore
AngeloCore / permissions
Last active June 14, 2024 14:02
All discord.js permissions | discord.js permissions list, hasPermission, permissionFor and more
* Numeric permission flags. All available properties:
* * `CREATE_INSTANT_INVITE` (create invitations to the guild)
* * `KICK_MEMBERS`
* * `BAN_MEMBERS`
* * `ADMINISTRATOR` (implicitly has *all* permissions, and bypasses all channel overwrites)
* * `MANAGE_CHANNELS` (edit and reorder channels)
* * `MANAGE_GUILD` (edit the guild information, region, etc.)
* * `ADD_REACTIONS` (add new reactions to messages)
* * `VIEW_AUDIT_LOG`
* * `PRIORITY_SPEAKER`
@AngeloCore
AngeloCore / index.js
Last active January 1, 2022 16:33
Discord.js v12 Inline Reply Powered by npmjs.com/discord-reply EASY!!! For help: https://www.npmjs.com/package/discord-reply
const discord = require('discord.js');
require('discord-reply'); //⚠️ IMPORTANT: put this before your discord.Client()
const client = new discord.Client();
client.on('ready', () => {
console.log(client.user.tag)
});
client.on('message', async message => {
if (message.content.startsWith('!reply')) {