summaryrefslogtreecommitdiff
path: root/desktop/node_modules/@xhayper/discord-rpc/dist/structures/Channel.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/node_modules/@xhayper/discord-rpc/dist/structures/Channel.d.ts')
-rw-r--r--desktop/node_modules/@xhayper/discord-rpc/dist/structures/Channel.d.ts47
1 files changed, 47 insertions, 0 deletions
diff --git a/desktop/node_modules/@xhayper/discord-rpc/dist/structures/Channel.d.ts b/desktop/node_modules/@xhayper/discord-rpc/dist/structures/Channel.d.ts
new file mode 100644
index 0000000..a12534b
--- /dev/null
+++ b/desktop/node_modules/@xhayper/discord-rpc/dist/structures/Channel.d.ts
@@ -0,0 +1,47 @@
+import type { ChannelType, GatewayVoiceState } from "discord-api-types/v10";
+import type { Client } from "../Client";
+import { Message } from "./Message";
+import { Base } from "./Base";
+export declare class Channel extends Base {
+ /**
+ * channel id
+ */
+ id: string;
+ /**
+ * channel's guild id
+ */
+ guild_id?: string;
+ /**
+ * channel name
+ */
+ name: string;
+ /**
+ * channel type (guild text: 0, guild voice: 2, dm: 1, group dm: 3)
+ */
+ type: ChannelType;
+ /**
+ * (text) channel topic
+ */
+ topic?: string;
+ /**
+ * (voice) bitrate of voice channel
+ */
+ bitrate?: number;
+ /**
+ * (voice) user limit of voice channel (0 for none)
+ */
+ user_limit?: number;
+ /**
+ * position of channel in channel list
+ */
+ position?: number;
+ /**
+ * (voice) channel's voice states
+ */
+ voice_states?: GatewayVoiceState[];
+ /**
+ * (text) channel's messages
+ */
+ messages?: Message[];
+ constructor(client: Client, props: Record<string, any>);
+}