Update edit_channel_overwrite.ts

This commit is contained in:
ITOH
2021-04-23 23:12:35 +02:00
parent 832905a0e9
commit 0d7590349b
@@ -15,7 +15,7 @@ export async function editChannelOverwrite(
): Promise<undefined> { ): Promise<undefined> {
await requireBotGuildPermissions(guildId, ["MANAGE_ROLES"]); await requireBotGuildPermissions(guildId, ["MANAGE_ROLES"]);
const result = await rest.runMethod( return await rest.runMethod<undefined>(
"put", "put",
endpoints.CHANNEL_OVERWRITE(channelId, overwriteId), endpoints.CHANNEL_OVERWRITE(channelId, overwriteId),
{ {
@@ -24,6 +24,4 @@ export async function editChannelOverwrite(
type: options.type, type: options.type,
}, },
); );
return result;
} }