Bot not starting

I tried using discord.js under deno and the bot won't even start, it deployed commands successfully. code:
import { Client, Events, GatewayIntentBits } from 'npm:discord.js@14';

const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent ]});

client.once(Events.ClientReady, async (bot) => {
console.log(`Ready! Logged in as ${bot.user.tag}`);
});

client.on('interactionCreate', async (interaction) => {
if (!interaction.isChatInputCommand()) return;

if (interaction.commandName === 'ping') {
await interaction.reply({ content: 'Pong!' });
};
});

client.login("insert token here");
import { Client, Events, GatewayIntentBits } from 'npm:discord.js@14';

const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent ]});

client.once(Events.ClientReady, async (bot) => {
console.log(`Ready! Logged in as ${bot.user.tag}`);
});

client.on('interactionCreate', async (interaction) => {
if (!interaction.isChatInputCommand()) return;

if (interaction.commandName === 'ping') {
await interaction.reply({ content: 'Pong!' });
};
});

client.login("insert token here");
console:
$ deno run index.ts
✅ Granted env access to "JEST_WORKER_ID".
✅ Granted read access to "/home/dubfib/.cache/deno/npm/node_modules".
✅ Granted read access to "/home/dubfib/.cache/deno/node_modules".
✅ Granted read access to "/home/dubfib/.cache/node_modules".
✅ Granted read access to "/home/dubfib/node_modules".
✅ Granted read access to "/home/node_modules".
✅ Granted read access to "/node_modules".
✅ Granted env access to "WS_NO_BUFFER_UTIL".
✅ Granted env access to "WS_NO_UTF_8_VALIDATE".
✅ Granted env access to "SHARDS".
✅ Granted env access to "SHARD_COUNT".
✅ Granted env access to "SHARDING_MANAGER".
✅ Granted env access to "DISCORD_TOKEN".
✅ Granted net access to "insert url".
✅ Granted net access to "insert url".
✅ Granted net access to "inset url".
✅ Granted net access to "discord.com:0".
✅ Granted net access to "gateway.discord.gg".
$ deno run index.ts
✅ Granted env access to "JEST_WORKER_ID".
✅ Granted read access to "/home/dubfib/.cache/deno/npm/node_modules".
✅ Granted read access to "/home/dubfib/.cache/deno/node_modules".
✅ Granted read access to "/home/dubfib/.cache/node_modules".
✅ Granted read access to "/home/dubfib/node_modules".
✅ Granted read access to "/home/node_modules".
✅ Granted read access to "/node_modules".
✅ Granted env access to "WS_NO_BUFFER_UTIL".
✅ Granted env access to "WS_NO_UTF_8_VALIDATE".
✅ Granted env access to "SHARDS".
✅ Granted env access to "SHARD_COUNT".
✅ Granted env access to "SHARDING_MANAGER".
✅ Granted env access to "DISCORD_TOKEN".
✅ Granted net access to "insert url".
✅ Granted net access to "insert url".
✅ Granted net access to "inset url".
✅ Granted net access to "discord.com:0".
✅ Granted net access to "gateway.discord.gg".
deno version: 1.29.1 typescript: 4.9.4
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Syjalo
Syjalo2y ago
We don't support Deno
dubfib
dubfib2y ago
oh