SnowTransfer error handling is no longer pathetic

This commit is contained in:
Cadence Ember
2026-08-17 17:30:06 +12:00
parent c0c6419bd1
commit 1dcd5620c4
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ async function updatePins(channelID, roomID, convertedTimestamp) {
try {
var discordPins = await discord.snow.channel.getChannelPinnedMessages(channelID)
} catch (e) {
if (e.message === `{"message": "Missing Access", "code": 50001}`) {
if (e.message === "Missing Access") {
return // Discord sends channel pins update events even for channels that the bot can't view/get pins in, just ignore it
}
throw e