Constructor
Variables
Methods
createDMGroup (data:CreateGroupDM, ?cb:DMChannel ‑> ErrorReport ‑> Void):Void
Create a DM group.
Parameters:
data |
|
---|---|
cb |
|
createGuild (guild_data:GuildCreate, cb:Null<Guild ‑> ErrorReport ‑> Void>):Void
Create a new guild based on the data given
Parameters:
guild_data |
|
---|---|
cb |
|
deleteInvite (invite_code:String, ?cb:Invite ‑> ErrorReport ‑> Void):Void
Delete an invite based on it's invite code. Requires the MANAGE_CHANNELS permission in the guild the invite is from.
Parameters:
invite_code |
|
---|---|
cb |
|
editUser (user_data:{username:String, avatar:String}, ?cb:User ‑> ErrorReport ‑> Void):Void
Edit the current user's settings.
Parameters:
user_data |
|
---|---|
cb |
|
getChannel (id:String, cb:Channel ‑> Void):Void
Get a channel from cache if it's there otherwise get from the API.
Parameters:
id |
|
---|---|
cb |
|
getChannelUnsafe (id:String):Null<Channel>
Unsafely get a channel from cache based on it's id. Throws an error if the channel could not be loaded.
Parameters:
id |
|
---|
getConnections (?cb:Array<Connection> ‑> ErrorReport ‑> Void):Void
Get a list of connections hooked up to the current account.
Parameters:
cb |
|
---|
getDMChannels (cb:Array<DMChannel> ‑> Void):Void
Get a list of all dm channels the bot is in.
Parameters:
cb |
|
---|
getGuild (id:String, cb:Guild ‑> Void):Void
Get a guild from cache if it's there otherwise load from API.
Parameters:
id |
|
---|---|
cb |
|
getGuildUnsafe (id:String):Null<Guild>
Unsafely get a guild from cache based on it's id. Throws an error if the guild is not cached.
Parameters:
id |
|
---|
getGuilds (filter:GetGuildFilter, ?cb:Array<Guild> ‑> ErrorReport ‑> Void):Void
Get a list of all guilds that the current user is in. Normal users do not need to use the filter and can leave it blank {}
Parameters:
filter |
|
---|---|
cb |
|
getInvite (invite_code:String, ?cb:Bool):Void
Get information about an invite code.
Parameters:
invite_code |
|
---|---|
cb |
|
getInviteLink (perms:Int = 0):String
Get the invite link of the bot.
Parameters:
perms=0 |
|
---|
getMessage (id:String, channel_id:String, cb:Message ‑> Void):Void
Get a message from cache if it is there otherwise load from api.
Parameters:
id |
|
---|---|
channel_id |
|
cb |
|
getMessageUnsafe (id:String):Null<Message>
Unsafely get a message based on it's id from cache. Throws an error if the message could not be loaded.
Parameters:
id |
|
---|
getUser (id:String, cb:User ‑> Void):Void
Get a user from cache if it's there otherwise get from API.
Parameters:
id |
|
---|---|
cb |
|
getUserUnsafe (id:String, partial:Bool = true):Null<User>
Unsafely get a user based on it's id from cache. Throws an error if the user could not be loaded.
Parameters:
id |
|
---|
joinInvite (invite_code:String, ?cb:Invite ‑> ErrorReport ‑> Void):Void
(NOT AVAILABLE FOR BOTS) Accept an invite code and join the server.
Parameters:
invite_code |
|
---|---|
cb |
|
listVoiceRegions (cb:Null<Array<VoiceRegion> ‑> ErrorReport ‑> Void>):Void
Get a list of voice regions.
Parameters:
cb |
|
---|
dynamiconChannelCreate (c:Channel):Void
Event hook for when a new channel is created.
Parameters:
c |
|
---|
dynamiconChannelDelete (channel_id:String):Void
Event hook for when a channel is deleted.
Parameters:
channel_id |
|
---|
dynamiconChannelUpdate (c:Channel):Void
Event hook for when a channel is changed/updated.
Parameters:
c |
|
---|
dynamiconGuildCreate (g:Guild):Void
Event hook for when a guild is created or joined by you, fired when bot is starting up as well.
Parameters:
g |
|
---|
dynamiconGuildDelete (guild_id:String):Void
Event hook for when a guild is deleted
Parameters:
guild_id |
|
---|
dynamiconGuildEmojisUpdate (g:Guild, emojis:Array<Emoji>):Void
Event hook for when a guild updates it's emojis.
Parameters:
g |
|
---|---|
emojis |
|
dynamiconGuildJoin (g:Guild):Void
NON-API Event hook for when a guild has been joined by you.
Parameters:
g |
|
---|
dynamiconGuildLeave (g:Guild):Void
NON-API Event hook for when a guild has been joined by you.
Parameters:
g |
|
---|
dynamiconGuildUpdate (g:Guild):Void
Event hook for when a guild is updated or changed.
Parameters:
g |
|
---|
dynamiconMemberBan (g:Guild, u:Null<User>):Void
Event hook for when a user is banned from a guild.
Parameters:
g |
|
---|---|
u |
|
dynamiconMemberJoin (g:Guild, m:GuildMember):Void
Event hook for when a new user joins a guild.
Parameters:
g |
|
---|---|
m |
|
dynamiconMemberLeave (g:Guild, u:Null<User>):Void
Event hook for when a member leaves a guild.
Parameters:
g |
|
---|---|
u |
|
dynamiconMemberUnban (g:Guild, u:Null<User>):Void
Event hook for when a user is unbanned from a guild.
Parameters:
g |
|
---|---|
u |
|
dynamiconMemberUpdate (g:Guild, m:GuildMember):Void
Event hook for when a user is updated or changed.
Parameters:
g |
|
---|---|
m |
|
dynamiconMessageDelete (message_id:String):Void
Event hook for when a message is deleted.
Parameters:
message_id |
|
---|
dynamiconMessageEdit (m:Message):Void
Event hook for when a message is edited.
Parameters:
m |
|
---|
dynamiconRawEvent (e:String, d:Dynamic):Void
A raw event hook, for things that require a little more flexibility.
Parameters:
e |
|
---|---|
d |
|
dynamiconReactionAdd (m:Message, u:User, e:Emoji):Void
Event hook for when a reaction is added.
Parameters:
m |
|
---|---|
u |
|
e |
|
dynamiconReactionPurge (m:Message):Void
Event hook for when reactions are purged from a message.
Parameters:
m |
|
---|
dynamiconReactionRemove (m:Message, u:Null<User>, e:Emoji):Void
Event hook for when reactions are removed.
Parameters:
m |
|
---|---|
u |
|
e |
|
dynamiconRoleCreate (g:Guild, r:Role):Void
Event hook for when a role is created.
Parameters:
g |
|
---|---|
r |
|
dynamiconRoleDelete (g:Guild, role_id:String):Void
Event hook for when a role is deleted
Parameters:
g |
|
---|---|
role_id |
|
dynamiconRoleUpdate (g:Guild, r:Role):Void
Event hook for when a role is changed/updated
Parameters:
g |
|
---|---|
r |
|
dynamiconTypingStart (u:User, c:Channel, t:Int):Void
Event hook for when someone starts typing
Parameters:
u |
|
---|---|
c |
|
t |
|
sendMessage (channel_id:String, message:MessageCreate, ?cb:Message ‑> ErrorReport ‑> Void):Void
Send a message to a channel
Parameters:
channel_id |
|
---|---|
message |
|
cb |
|
setActivity (activity:Activity):Void
Set the activity of the bot
Parameters:
activity |
|
---|