mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
this too
This commit is contained in:
@@ -49,8 +49,8 @@ const baseChannel: Partial<DiscordenoChannel> = {
|
||||
disconnect(memberId) {
|
||||
return disconnectMember(this.guildId!, memberId);
|
||||
},
|
||||
delete() {
|
||||
return deleteChannel(this.guildId!, this.id!);
|
||||
delete(reason) {
|
||||
return deleteChannel(this.id!, reason);
|
||||
},
|
||||
editOverwrite(id, options) {
|
||||
return editChannelOverwrite(this.guildId!, this.id!, id, options);
|
||||
@@ -147,7 +147,7 @@ export interface DiscordenoChannel
|
||||
/** Disconnect a member from a voice channel. Requires MOVE_MEMBERS permission. */
|
||||
disconnect(memberID: string): ReturnType<typeof disconnectMember>;
|
||||
/** Delete the channel */
|
||||
delete(): ReturnType<typeof deleteChannel>;
|
||||
delete(reason?: string): ReturnType<typeof deleteChannel>;
|
||||
/** Edit a channel Overwrite */
|
||||
editOverwrite(
|
||||
overwriteID: string,
|
||||
|
||||
@@ -21,7 +21,7 @@ Deno.test({
|
||||
}
|
||||
|
||||
// Delete the channel now without a reason
|
||||
await deleteChannel(tempData.guildId, channel.id);
|
||||
await deleteChannel(channel.id);
|
||||
// wait 5 seconds to give it time for CHANNEL_DELETE event
|
||||
await delayUntil(3000, () => !cache.channels.has(channel.id));
|
||||
// Make sure it is gone from cache
|
||||
|
||||
Reference in New Issue
Block a user