fix: more bugs bugs bugs

This commit is contained in:
Skillz4Killz
2021-06-17 20:08:30 +00:00
committed by GitHub
parent d1b4ee8047
commit 88e52c6170
6 changed files with 43 additions and 30 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export async function startThread(channelId: bigint, options: StartThread & { me
throw new Error(Errors.INVALID_THREAD_PARENT_CHANNEL_TYPE);
}
await requireBotChannelPermissions(channel, ["USE_PUBLIC_THREADS"]);
await requireBotChannelPermissions(channel, ["SEND_MESSAGES", "USE_PUBLIC_THREADS"]);
}
return await rest.runMethod(