Update delete_channel.ts

This commit is contained in:
ITOH
2021-04-23 23:12:33 +02:00
parent 27c569050e
commit 832905a0e9
+1 -3
View File
@@ -23,11 +23,9 @@ export async function deleteChannel(
throw new Error(Errors.UPDATES_CHANNEL_CANNOT_BE_DELETED); throw new Error(Errors.UPDATES_CHANNEL_CANNOT_BE_DELETED);
} }
const result = await rest.runMethod( return await rest.runMethod<undefined>(
"delete", "delete",
endpoints.CHANNEL_BASE(channelId), endpoints.CHANNEL_BASE(channelId),
{ reason }, { reason },
); );
return result;
} }