Skip to content

Commit

Permalink
Don't hardcode channel id unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jan 6, 2025
1 parent f740d7e commit b15013c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export default async (client, info) => {
let infoLimited = info.substring(0, 2000);
let debugChannelID = "1325890140517826580"; // Replace ID with specific debug channel ID
let debugChannel = client.channels.cache.get(debugChannelID);
if (!debugChannel) debugChannel = await client.channels.fetch("1325890140517826580");
if (!debugChannel) debugChannel = await client.channels.fetch(debugChannelID);
return debugChannel.send({ content: infoLimited });
};

0 comments on commit b15013c

Please sign in to comment.