Methods
create
- create(data: { name: string }): Promise<{ bot: Bot; user: User }>
-
Parameters
Returns Promise<{ bot: Bot; user: User }>
delete
- delete(id: string): Promise<void>
-
Parameters
Returns Promise<void>
edit
- edit(id: string, data: { interactionsURL?: string; name?: string; public?: boolean; remove?: "InteractionsURL" }): Promise<void>
-
Parameters
-
id: string
-
data: { interactionsURL?: string; name?: string; public?: boolean; remove?: "InteractionsURL" }
-
Optional interactionsURL?: string
-
Optional name?: string
-
Optional public?: boolean
-
Optional remove?: "InteractionsURL"
Returns Promise<void>
fetch
- fetch(id: string): Promise<{ bot: Bot; user: User }>
-
Parameters
Returns Promise<{ bot: Bot; user: User }>
Bot and User object
fetchOwned
- fetchOwned(): Promise<{ bots: Bot[]; users: User[] }>
-
Returns Promise<{ bots: Bot[]; users: User[] }>
Bot and User objects
fetchPublic
- fetchPublic(id: string): Promise<PublicBot>
-
Parameters
Returns Promise<PublicBot>
Public Bot object
invite
- invite(id: string, destination: { server: string } | { group: string }): Promise<undefined>
-
Parameters
-
id: string
-
destination: { server: string } | { group: string }
Returns Promise<undefined>
Create a bot