message: fix: unnecessary messages loop for non message channels
diff: @@ -30,7 +30,14 @@ export async function handleChannelDelete(data: DiscordGatewayPayload) {
  }
  }
  - await cacheHandlers.delete("channels", payload.id);
  + if (
  + [
  + DiscordChannelTypes.GuildText,
  + DiscordChannelTypes.Dm,
  + DiscordChannelTypes.GroupDm,
  + DiscordChannelTypes.GuildNews,
  + ].includes(payload.type)
  + ) {
  cacheHandlers.forEach("messages", (message) => {
  eventHandlers.debug?.(
  "loop",
  @@ -40,5 +47,9 @@ export async function handleChannelDelete(data: DiscordGatewayPayload) {
  cacheHandlers.delete("messages", message.id);
  }
  });
  + }
  +
  + await cacheHandlers.delete("channels", payload.id);
  +
  eventHandlers.channelDelete?.(cachedChannel);
  }
  