Last active
November 23, 2022 17:45
-
-
Save DJj123dj/ab232f20ee22ff5e05e06426ecd6ed77 to your computer and use it in GitHub Desktop.
Discord.js 14 start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const discord = require("discord.js") | |
const {EmbedBuilder,AttachmentBuilder,ButtonBuilder,ActionRowBuilder} = discord | |
const gib = discord.GatewayIntentBits | |
const p = discord.Partials | |
const client = new discord.Client({ | |
intents:[ | |
gib.DirectMessages, | |
gib.Guilds, | |
gib.GuildMembers, | |
gib.GuildMessages, | |
gib.GuildInvites, | |
gib.MessageContent | |
], | |
partials:[p.Channel,p.Message] | |
}) | |
exports.client = client | |
client.on("ready",() => { | |
console.log("bot ready!") | |
}) | |
client.login("*token*") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment