Skip to content

Commit

Permalink
Use discord-api-types for ChannelType
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbegby committed Aug 13, 2024
1 parent a414d3c commit 6731bcd
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions packages/discord-player/src/clientadapter/IClientAdapter.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ChannelType } from 'discord-api-types/v9';
import { AudioPlayerState, DiscordGatewayAdapterCreator } from "discord-voip";

export const ClientType = {
Expand All @@ -6,23 +7,6 @@ export const ClientType = {
Unknown: "unknown"
};

export enum ChannelType {
Unknown = -1,
GuildText = 0,
DM = 1,
GuildVoice = 2,
GroupDM = 3,
GuildCategory = 4,
GuildAnnouncement = 5,
AnnouncementThread = 10,
PublicThread = 11,
PrivateThread = 12,
GuildStageVoice = 13,
GuildDirectory = 14,
GuildForum = 15,
GuildMedia = 16,
}

export type ClientUser = {
setSelfDeaf(state?: boolean, reason?: string): Promise<void>;
setSelfMute(state?: boolean, reason?: string): Promise<void>;
Expand Down

0 comments on commit 6731bcd

Please sign in to comment.