Skip to content

Commit

Permalink
refactor(EventHandler): use Discord.Events
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolga1452 committed Nov 29, 2022
1 parent 91dcb5a commit 18524d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//Packages & Helpful Tools

const { Client, GatewayIntentBits, Collection } = require("discord.js");
const { Client, GatewayIntentBits, Collection, Events } = require("discord.js");
const { readdir } = require("fs");
const Logger = require('terminal.xr');
const { Axios } = require("axios");
Expand Down Expand Up @@ -195,7 +195,7 @@ if (shard === 0) (async () => {
//Events

client
.on('interactionCreate', async interaction => {
.on(Events.InteractionCreate, async interaction => {
if (interaction.isCommand()) {
let name = interaction.commandName.split(' ')[0];
let guild = interaction.commandGuildId;
Expand Down

0 comments on commit 18524d2

Please sign in to comment.