add: return type

This commit is contained in:
ITOH
2021-06-19 17:13:08 +02:00
parent 5202e3f6ae
commit f3353f512c
7 changed files with 18 additions and 12 deletions
@@ -11,5 +11,5 @@ export async function deleteThread(threadId: bigint, reason?: string) {
if (channel?.guildId) await requireBotGuildPermissions(channel.guildId, ["MANAGE_THREADS"]);
}
return await rest.runMethod("delete", endpoints.CHANNEL_BASE(threadId), { reason });
return await rest.runMethod<undefined>("delete", endpoints.CHANNEL_BASE(threadId), { reason });
}