Skip to content

Instantly share code, notes, and snippets.

@DJj123dj
Last active November 23, 2022 17:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DJj123dj/ab232f20ee22ff5e05e06426ecd6ed77 to your computer and use it in GitHub Desktop.
Save DJj123dj/ab232f20ee22ff5e05e06426ecd6ed77 to your computer and use it in GitHub Desktop.
Discord.js 14 start
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