mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
Update edit_channel.ts
This commit is contained in:
@@ -139,7 +139,7 @@ function processEditChannelQueue() {
|
||||
const now = Date.now();
|
||||
editChannelNameTopicQueue.forEach(async (request) => {
|
||||
eventHandlers.debug?.("loop", `Running forEach loop in edit_channel file.`);
|
||||
if (now > request.timestamp) return;
|
||||
if (now < request.timestamp) return;
|
||||
// 10 minutes have passed so we can reset this channel again
|
||||
if (!request.items.length) {
|
||||
return editChannelNameTopicQueue.delete(request.channelId);
|
||||
|
||||
Reference in New Issue
Block a user