mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update edit_channel_overwrite.ts
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user