Class Lobby
🏭 Constructors
constructor
new Lobby(client: Client, props: Record<string, any>): Lobby
Parameters
- client:
Client
- props:
Record<string, any>
Return Type
Lobby
Defined in: packages/discord-rpc/structures/Lobby.ts:25
🏷️ Properties
application_id
application_id: string
Defined in: packages/discord-rpc/structures/Lobby.ts:13
capacity
capacity: number
Defined in: packages/discord-rpc/structures/Lobby.ts:14
client
client: Client
the client instance Inherited from: Base.client
Defined in: packages/discord-rpc/structures/Base.ts:7
id
id: string
Defined in: packages/discord-rpc/structures/Lobby.ts:15
locked
locked: boolean
Defined in: packages/discord-rpc/structures/Lobby.ts:16
members
members: Object[]
Defined in: packages/discord-rpc/structures/Lobby.ts:17
metadata
metadata: any
Defined in: packages/discord-rpc/structures/Lobby.ts:18
owner_id
owner_id: string
Defined in: packages/discord-rpc/structures/Lobby.ts:19
region
region: string
Defined in: packages/discord-rpc/structures/Lobby.ts:20
secret
secret: string
Defined in: packages/discord-rpc/structures/Lobby.ts:21
type
type: LobbyType
Defined in: packages/discord-rpc/structures/Lobby.ts:22
voice_states
voice_states: GatewayVoiceState
Defined in: packages/discord-rpc/structures/Lobby.ts:23
🔧 Methods
delete
delete(): Promise<void>
Return Type
Promise<void>
Defined in: packages/discord-rpc/structures/Lobby.ts:81
disconnect
disconnect(): Promise<void>
Return Type
Promise<void>
Defined in: packages/discord-rpc/structures/Lobby.ts:77
joinVoice
joinVoice(): Promise<void>
Return Type
Promise<void>
Defined in: packages/discord-rpc/structures/Lobby.ts:42
leaveVoice
leaveVoice(): Promise<void>
Return Type
Promise<void>
Defined in: packages/discord-rpc/structures/Lobby.ts:46
update
update(type: LobbyType, owner_id: string, capacity: number, locked: boolean, metadata: any): Promise<void>
Parameters
- type:
LobbyType
- owner_id:
string
- capacity:
number
- locked:
boolean
- metadata:
any
Return Type
Promise<void>
Defined in: packages/discord-rpc/structures/Lobby.ts:50
updateMember
updateMember(userId: string, metadata: any): Promise<void>
Parameters
- userId:
string
- metadata:
any
Return Type
Promise<void>
Defined in: packages/discord-rpc/structures/Lobby.ts:73