mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
Fix
This commit is contained in:
parent
44d2ddc515
commit
972f688144
@ -115,7 +115,9 @@ export abstract class BaseChannel implements Model {
|
||||
* @link https://discord.com/developers/docs/topics/gateway#channel-delete
|
||||
*/
|
||||
async delete(channelId?: Snowflake): Promise<Channel> {
|
||||
return await this.session.rest.delete<Channel>(CHANNEL(channelId ?? this.id));
|
||||
const deleted = await this.session.rest.delete<DiscordChannel>(CHANNEL(channelId ?? this.id));
|
||||
|
||||
return ChannelFactory.from(this.session, deleted);
|
||||
}
|
||||
|
||||
toString(): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user