From ad9426a871f022a1b63d8ef3d635065186fcc8ee Mon Sep 17 00:00:00 2001 From: KillerBossOrig Date: Sun, 6 Aug 2023 20:34:01 +0200 Subject: [PATCH] Update docs, updating guilds class --- doc/api/index.html | 9 +- doc/api/index.json | 2 +- doc/api/tn_discord/Channel-class.html | 306 +++++++++++++ doc/api/tn_discord/Channel/Channel.html | 150 +++++++ doc/api/tn_discord/Channel/id.html | 146 +++++++ doc/api/tn_discord/Channel/name.html | 146 +++++++ doc/api/tn_discord/Channel/send.html | 153 +++++++ doc/api/tn_discord/ChannelManager-class.html | 294 +++++++++++++ .../ChannelManager/ChannelManager.html | 150 +++++++ doc/api/tn_discord/ChannelManager/cache.html | 145 +++++++ doc/api/tn_discord/ChannelManager/fetch.html | 154 +++++++ doc/api/tn_discord/Client-class.html | 172 ++++++-- doc/api/tn_discord/Client/Client.html | 29 +- doc/api/tn_discord/Client/guilds.html | 159 +++++++ doc/api/tn_discord/Client/intents.html | 159 +++++++ doc/api/tn_discord/Client/login.html | 283 ++++++++++++ .../tn_discord/Client/resumeGatewayURL.html | 159 +++++++ doc/api/tn_discord/Client/sessionID.html | 159 +++++++ doc/api/tn_discord/Client/token.html | 159 +++++++ doc/api/tn_discord/Client/ws.html | 159 +++++++ doc/api/tn_discord/Collection-class.html | 398 +++++++++++++++++ doc/api/tn_discord/Collection/Collection.html | 154 +++++++ doc/api/tn_discord/Collection/add.html | 163 +++++++ doc/api/tn_discord/Collection/delete.html | 161 +++++++ doc/api/tn_discord/Collection/get.html | 164 +++++++ doc/api/tn_discord/Collection/getAll.html | 160 +++++++ doc/api/tn_discord/Collection/keys.html | 160 +++++++ doc/api/tn_discord/Collection/remove.html | 161 +++++++ doc/api/tn_discord/Collection/set.html | 163 +++++++ doc/api/tn_discord/Collection/subtract.html | 163 +++++++ doc/api/tn_discord/Collection/values.html | 160 +++++++ doc/api/tn_discord/Embed.html | 18 +- .../tn_discord/GatewayIntentBits-class.html | 85 ++-- .../AutoModerationConfiguration-constant.html | 12 +- .../AutoModerationExecution-constant.html | 12 +- .../DirectMessageReactions-constant.html | 12 +- .../DirectMessageTyping-constant.html | 12 +- .../DirectMessages-constant.html | 12 +- .../GatewayIntentBits/GatewayIntentBits.html | 10 +- .../GuildEmojisAndStickers-constant.html | 12 +- .../GuildIntegrations-constant.html | 12 +- .../GuildInvites-constant.html | 12 +- .../GuildMembers-constant.html | 12 +- .../GuildMessageReactions-constant.html | 12 +- .../GuildMessageTyping-constant.html | 12 +- .../GuildMessages-constant.html | 12 +- .../GuildModeration-constant.html | 12 +- .../GuildPresences-constant.html | 12 +- .../GuildScheduledEvents-constant.html | 12 +- .../GuildVoiceStates-constant.html | 12 +- .../GuildWebhooks-constant.html | 12 +- .../GatewayIntentBits/Guilds-constant.html | 12 +- .../MessageContent-constant.html | 12 +- doc/api/tn_discord/Guild-class.html | 403 ++++++++++++++++++ doc/api/tn_discord/Guild/Guild.html | 198 +++++++++ doc/api/tn_discord/Guild/channels.html | 154 +++++++ doc/api/tn_discord/Guild/description.html | 154 +++++++ doc/api/tn_discord/Guild/id.html | 154 +++++++ doc/api/tn_discord/Guild/joinedAt.html | 154 +++++++ doc/api/tn_discord/Guild/large.html | 154 +++++++ doc/api/tn_discord/Guild/memberCount.html | 154 +++++++ doc/api/tn_discord/Guild/members.html | 154 +++++++ doc/api/tn_discord/Guild/name.html | 154 +++++++ doc/api/tn_discord/Guild/ownerId.html | 154 +++++++ doc/api/tn_discord/Guild/roles.html | 154 +++++++ doc/api/tn_discord/Guild/unavailable.html | 154 +++++++ doc/api/tn_discord/GuildManager-class.html | 294 +++++++++++++ .../tn_discord/GuildManager/GuildManager.html | 150 +++++++ doc/api/tn_discord/GuildManager/cache.html | 145 +++++++ doc/api/tn_discord/GuildManager/fetch.html | 159 +++++++ doc/api/tn_discord/Member-class.html | 292 +++++++++++++ doc/api/tn_discord/Member/Member.html | 148 +++++++ doc/api/tn_discord/Member/id.html | 145 +++++++ doc/api/tn_discord/Member/user.html | 145 +++++++ doc/api/tn_discord/MemberManager-class.html | 306 +++++++++++++ .../MemberManager/MemberManager.html | 151 +++++++ doc/api/tn_discord/MemberManager/cache.html | 146 +++++++ doc/api/tn_discord/MemberManager/fetch.html | 159 +++++++ doc/api/tn_discord/MemberManager/id.html | 146 +++++++ doc/api/tn_discord/Message-class.html | 315 ++++++++++++++ doc/api/tn_discord/Message/Message.html | 145 +++++++ doc/api/tn_discord/Message/content.html | 145 +++++++ doc/api/tn_discord/Message/exportable.html | 155 +++++++ doc/api/tn_discord/MessageSent-class.html | 331 ++++++++++++++ .../tn_discord/MessageSent/MessageSent.html | 149 +++++++ doc/api/tn_discord/MessageSent/id.html | 146 +++++++ doc/api/tn_discord/Role-class.html | 292 +++++++++++++ doc/api/tn_discord/Role/Role.html | 148 +++++++ doc/api/tn_discord/Role/id.html | 145 +++++++ doc/api/tn_discord/Role/name.html | 145 +++++++ doc/api/tn_discord/RoleManager-class.html | 280 ++++++++++++ .../tn_discord/RoleManager/RoleManager.html | 148 +++++++ doc/api/tn_discord/RoleManager/cache.html | 144 +++++++ doc/api/tn_discord/User-class.html | 352 +++++++++++++++ doc/api/tn_discord/User/User.html | 161 +++++++ doc/api/tn_discord/User/avatar.html | 150 +++++++ doc/api/tn_discord/User/bot.html | 150 +++++++ doc/api/tn_discord/User/discriminator.html | 150 +++++++ doc/api/tn_discord/User/displayName.html | 150 +++++++ doc/api/tn_discord/User/globalName.html | 150 +++++++ doc/api/tn_discord/User/id.html | 150 +++++++ doc/api/tn_discord/User/username.html | 150 +++++++ doc/api/tn_discord/UserManager-class.html | 294 +++++++++++++ .../tn_discord/UserManager/UserManager.html | 149 +++++++ doc/api/tn_discord/UserManager/cache.html | 145 +++++++ doc/api/tn_discord/UserManager/fetch.html | 157 +++++++ doc/api/tn_discord/WebhookClient-class.html | 72 ++-- .../WebhookClient/WebhookClient.html | 10 +- doc/api/tn_discord/WebhookClient/delete.html | 15 +- doc/api/tn_discord/WebhookClient/edit.html | 19 +- .../tn_discord/WebhookClient/editText.html | 17 +- doc/api/tn_discord/WebhookClient/get.html | 15 +- doc/api/tn_discord/WebhookClient/id.html | 12 +- doc/api/tn_discord/WebhookClient/send.html | 20 +- .../tn_discord/WebhookClient/sendText.html | 15 +- doc/api/tn_discord/WebhookClient/token.html | 12 +- doc/api/tn_discord/apiURL.html | 18 +- doc/api/tn_discord/calculateIntents.html | 170 ++++++++ doc/api/tn_discord/tn_discord-library.html | 171 ++++++-- doc/api/tn_discord/version.html | 18 +- lib/src/classes/channel/channel.dart | 19 + lib/src/classes/channel/channel_manager.dart | 21 + lib/src/classes/gateway_intents_bits.dart | 24 ++ lib/src/classes/guild/guild.dart | 91 ++++ lib/src/classes/guild/guild_manager.dart | 27 ++ lib/src/classes/member/member.dart | 11 + lib/src/classes/member/member_manager.dart | 21 + lib/src/classes/message/embed.dart | 1 + lib/src/classes/message/message.dart | 12 + lib/src/classes/message/message_sent.dart | 9 + lib/src/classes/role/role.dart | 9 + lib/src/classes/role/role_manager.dart | 12 + lib/src/classes/user/user.dart | 22 + lib/src/classes/user/user_manager.dart | 27 ++ lib/src/collection.dart | 62 +++ lib/src/main.dart | 14 +- lib/src/requests.dart | 11 +- lib/src/types.dart | 323 -------------- lib/src/util.dart | 2 +- lib/src/webhook.dart | 2 +- lib/tn_discord.dart | 2 +- 141 files changed, 15768 insertions(+), 656 deletions(-) create mode 100644 doc/api/tn_discord/Channel-class.html create mode 100644 doc/api/tn_discord/Channel/Channel.html create mode 100644 doc/api/tn_discord/Channel/id.html create mode 100644 doc/api/tn_discord/Channel/name.html create mode 100644 doc/api/tn_discord/Channel/send.html create mode 100644 doc/api/tn_discord/ChannelManager-class.html create mode 100644 doc/api/tn_discord/ChannelManager/ChannelManager.html create mode 100644 doc/api/tn_discord/ChannelManager/cache.html create mode 100644 doc/api/tn_discord/ChannelManager/fetch.html create mode 100644 doc/api/tn_discord/Client/guilds.html create mode 100644 doc/api/tn_discord/Client/intents.html create mode 100644 doc/api/tn_discord/Client/login.html create mode 100644 doc/api/tn_discord/Client/resumeGatewayURL.html create mode 100644 doc/api/tn_discord/Client/sessionID.html create mode 100644 doc/api/tn_discord/Client/token.html create mode 100644 doc/api/tn_discord/Client/ws.html create mode 100644 doc/api/tn_discord/Collection-class.html create mode 100644 doc/api/tn_discord/Collection/Collection.html create mode 100644 doc/api/tn_discord/Collection/add.html create mode 100644 doc/api/tn_discord/Collection/delete.html create mode 100644 doc/api/tn_discord/Collection/get.html create mode 100644 doc/api/tn_discord/Collection/getAll.html create mode 100644 doc/api/tn_discord/Collection/keys.html create mode 100644 doc/api/tn_discord/Collection/remove.html create mode 100644 doc/api/tn_discord/Collection/set.html create mode 100644 doc/api/tn_discord/Collection/subtract.html create mode 100644 doc/api/tn_discord/Collection/values.html create mode 100644 doc/api/tn_discord/Guild-class.html create mode 100644 doc/api/tn_discord/Guild/Guild.html create mode 100644 doc/api/tn_discord/Guild/channels.html create mode 100644 doc/api/tn_discord/Guild/description.html create mode 100644 doc/api/tn_discord/Guild/id.html create mode 100644 doc/api/tn_discord/Guild/joinedAt.html create mode 100644 doc/api/tn_discord/Guild/large.html create mode 100644 doc/api/tn_discord/Guild/memberCount.html create mode 100644 doc/api/tn_discord/Guild/members.html create mode 100644 doc/api/tn_discord/Guild/name.html create mode 100644 doc/api/tn_discord/Guild/ownerId.html create mode 100644 doc/api/tn_discord/Guild/roles.html create mode 100644 doc/api/tn_discord/Guild/unavailable.html create mode 100644 doc/api/tn_discord/GuildManager-class.html create mode 100644 doc/api/tn_discord/GuildManager/GuildManager.html create mode 100644 doc/api/tn_discord/GuildManager/cache.html create mode 100644 doc/api/tn_discord/GuildManager/fetch.html create mode 100644 doc/api/tn_discord/Member-class.html create mode 100644 doc/api/tn_discord/Member/Member.html create mode 100644 doc/api/tn_discord/Member/id.html create mode 100644 doc/api/tn_discord/Member/user.html create mode 100644 doc/api/tn_discord/MemberManager-class.html create mode 100644 doc/api/tn_discord/MemberManager/MemberManager.html create mode 100644 doc/api/tn_discord/MemberManager/cache.html create mode 100644 doc/api/tn_discord/MemberManager/fetch.html create mode 100644 doc/api/tn_discord/MemberManager/id.html create mode 100644 doc/api/tn_discord/Message-class.html create mode 100644 doc/api/tn_discord/Message/Message.html create mode 100644 doc/api/tn_discord/Message/content.html create mode 100644 doc/api/tn_discord/Message/exportable.html create mode 100644 doc/api/tn_discord/MessageSent-class.html create mode 100644 doc/api/tn_discord/MessageSent/MessageSent.html create mode 100644 doc/api/tn_discord/MessageSent/id.html create mode 100644 doc/api/tn_discord/Role-class.html create mode 100644 doc/api/tn_discord/Role/Role.html create mode 100644 doc/api/tn_discord/Role/id.html create mode 100644 doc/api/tn_discord/Role/name.html create mode 100644 doc/api/tn_discord/RoleManager-class.html create mode 100644 doc/api/tn_discord/RoleManager/RoleManager.html create mode 100644 doc/api/tn_discord/RoleManager/cache.html create mode 100644 doc/api/tn_discord/User-class.html create mode 100644 doc/api/tn_discord/User/User.html create mode 100644 doc/api/tn_discord/User/avatar.html create mode 100644 doc/api/tn_discord/User/bot.html create mode 100644 doc/api/tn_discord/User/discriminator.html create mode 100644 doc/api/tn_discord/User/displayName.html create mode 100644 doc/api/tn_discord/User/globalName.html create mode 100644 doc/api/tn_discord/User/id.html create mode 100644 doc/api/tn_discord/User/username.html create mode 100644 doc/api/tn_discord/UserManager-class.html create mode 100644 doc/api/tn_discord/UserManager/UserManager.html create mode 100644 doc/api/tn_discord/UserManager/cache.html create mode 100644 doc/api/tn_discord/UserManager/fetch.html create mode 100644 doc/api/tn_discord/calculateIntents.html create mode 100644 lib/src/classes/channel/channel.dart create mode 100644 lib/src/classes/channel/channel_manager.dart create mode 100644 lib/src/classes/gateway_intents_bits.dart create mode 100644 lib/src/classes/guild/guild.dart create mode 100644 lib/src/classes/guild/guild_manager.dart create mode 100644 lib/src/classes/member/member.dart create mode 100644 lib/src/classes/member/member_manager.dart create mode 100644 lib/src/classes/message/embed.dart create mode 100644 lib/src/classes/message/message.dart create mode 100644 lib/src/classes/message/message_sent.dart create mode 100644 lib/src/classes/role/role.dart create mode 100644 lib/src/classes/role/role_manager.dart create mode 100644 lib/src/classes/user/user.dart create mode 100644 lib/src/classes/user/user_manager.dart create mode 100644 lib/src/collection.dart delete mode 100644 lib/src/types.dart diff --git a/doc/api/index.html b/doc/api/index.html index 1f960eb..daf2c16 100644 --- a/doc/api/index.html +++ b/doc/api/index.html @@ -69,6 +69,13 @@ main() {
  • token: String url overrides id and token
  • +

    Credits

    +

    We took inspiration from discord.js and Grapes-discord.grapes.

    +

    Packages

    + @@ -79,7 +86,7 @@ url overrides id and token tn_discord -
    Support for doing something awesome. +
    diff --git a/doc/api/index.json b/doc/api/index.json index dc0b4ba..ee6f04f 100644 --- a/doc/api/index.json +++ b/doc/api/index.json @@ -1 +1 @@ -[{"name":"tn_discord","qualifiedName":"tn_discord","href":"tn_discord/tn_discord-library.html","type":"library","overriddenDepth":0,"packageName":"tn_discord","desc":"Support for doing something awesome."},{"name":"Client","qualifiedName":"tn_discord.Client","href":"tn_discord/Client-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Client","qualifiedName":"tn_discord.Client.Client","href":"tn_discord/Client/Client.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"Embed","qualifiedName":"tn_discord.Embed","href":"tn_discord/Embed.html","type":"typedef","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"GatewayIntentBits","qualifiedName":"tn_discord.GatewayIntentBits","href":"tn_discord/GatewayIntentBits-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"AutoModerationConfiguration","qualifiedName":"tn_discord.GatewayIntentBits.AutoModerationConfiguration","href":"tn_discord/GatewayIntentBits/AutoModerationConfiguration-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"AutoModerationExecution","qualifiedName":"tn_discord.GatewayIntentBits.AutoModerationExecution","href":"tn_discord/GatewayIntentBits/AutoModerationExecution-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"DirectMessageReactions","qualifiedName":"tn_discord.GatewayIntentBits.DirectMessageReactions","href":"tn_discord/GatewayIntentBits/DirectMessageReactions-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"DirectMessageTyping","qualifiedName":"tn_discord.GatewayIntentBits.DirectMessageTyping","href":"tn_discord/GatewayIntentBits/DirectMessageTyping-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"DirectMessages","qualifiedName":"tn_discord.GatewayIntentBits.DirectMessages","href":"tn_discord/GatewayIntentBits/DirectMessages-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GatewayIntentBits","qualifiedName":"tn_discord.GatewayIntentBits.GatewayIntentBits","href":"tn_discord/GatewayIntentBits/GatewayIntentBits.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildEmojisAndStickers","qualifiedName":"tn_discord.GatewayIntentBits.GuildEmojisAndStickers","href":"tn_discord/GatewayIntentBits/GuildEmojisAndStickers-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildIntegrations","qualifiedName":"tn_discord.GatewayIntentBits.GuildIntegrations","href":"tn_discord/GatewayIntentBits/GuildIntegrations-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildInvites","qualifiedName":"tn_discord.GatewayIntentBits.GuildInvites","href":"tn_discord/GatewayIntentBits/GuildInvites-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMembers","qualifiedName":"tn_discord.GatewayIntentBits.GuildMembers","href":"tn_discord/GatewayIntentBits/GuildMembers-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMessageReactions","qualifiedName":"tn_discord.GatewayIntentBits.GuildMessageReactions","href":"tn_discord/GatewayIntentBits/GuildMessageReactions-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMessageTyping","qualifiedName":"tn_discord.GatewayIntentBits.GuildMessageTyping","href":"tn_discord/GatewayIntentBits/GuildMessageTyping-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMessages","qualifiedName":"tn_discord.GatewayIntentBits.GuildMessages","href":"tn_discord/GatewayIntentBits/GuildMessages-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildModeration","qualifiedName":"tn_discord.GatewayIntentBits.GuildModeration","href":"tn_discord/GatewayIntentBits/GuildModeration-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildPresences","qualifiedName":"tn_discord.GatewayIntentBits.GuildPresences","href":"tn_discord/GatewayIntentBits/GuildPresences-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildScheduledEvents","qualifiedName":"tn_discord.GatewayIntentBits.GuildScheduledEvents","href":"tn_discord/GatewayIntentBits/GuildScheduledEvents-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildVoiceStates","qualifiedName":"tn_discord.GatewayIntentBits.GuildVoiceStates","href":"tn_discord/GatewayIntentBits/GuildVoiceStates-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildWebhooks","qualifiedName":"tn_discord.GatewayIntentBits.GuildWebhooks","href":"tn_discord/GatewayIntentBits/GuildWebhooks-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"Guilds","qualifiedName":"tn_discord.GatewayIntentBits.Guilds","href":"tn_discord/GatewayIntentBits/Guilds-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"MessageContent","qualifiedName":"tn_discord.GatewayIntentBits.MessageContent","href":"tn_discord/GatewayIntentBits/MessageContent-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"Message","qualifiedName":"tn_discord.Message","href":"tn_discord/Message.html","type":"typedef","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"WebhookClient","qualifiedName":"tn_discord.WebhookClient","href":"tn_discord/WebhookClient-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"WebhookClient","qualifiedName":"tn_discord.WebhookClient.WebhookClient","href":"tn_discord/WebhookClient/WebhookClient.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"delete","qualifiedName":"tn_discord.WebhookClient.delete","href":"tn_discord/WebhookClient/delete.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"edit","qualifiedName":"tn_discord.WebhookClient.edit","href":"tn_discord/WebhookClient/edit.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"editText","qualifiedName":"tn_discord.WebhookClient.editText","href":"tn_discord/WebhookClient/editText.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"get","qualifiedName":"tn_discord.WebhookClient.get","href":"tn_discord/WebhookClient/get.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"id","qualifiedName":"tn_discord.WebhookClient.id","href":"tn_discord/WebhookClient/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"send","qualifiedName":"tn_discord.WebhookClient.send","href":"tn_discord/WebhookClient/send.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"sendText","qualifiedName":"tn_discord.WebhookClient.sendText","href":"tn_discord/WebhookClient/sendText.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"token","qualifiedName":"tn_discord.WebhookClient.token","href":"tn_discord/WebhookClient/token.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"apiURL","qualifiedName":"tn_discord.apiURL","href":"tn_discord/apiURL.html","type":"top-level property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"version","qualifiedName":"tn_discord.version","href":"tn_discord/version.html","type":"top-level property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}}] +[{"name":"tn_discord","qualifiedName":"tn_discord","href":"tn_discord/tn_discord-library.html","type":"library","overriddenDepth":0,"packageName":"tn_discord","desc":""},{"name":"Channel","qualifiedName":"tn_discord.Channel","href":"tn_discord/Channel-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Channel","qualifiedName":"tn_discord.Channel.Channel","href":"tn_discord/Channel/Channel.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Channel","type":"class","href":"tn_discord/Channel-class.html"}},{"name":"id","qualifiedName":"tn_discord.Channel.id","href":"tn_discord/Channel/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Channel","type":"class","href":"tn_discord/Channel-class.html"}},{"name":"name","qualifiedName":"tn_discord.Channel.name","href":"tn_discord/Channel/name.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Channel","type":"class","href":"tn_discord/Channel-class.html"}},{"name":"send","qualifiedName":"tn_discord.Channel.send","href":"tn_discord/Channel/send.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Channel","type":"class","href":"tn_discord/Channel-class.html"}},{"name":"ChannelManager","qualifiedName":"tn_discord.ChannelManager","href":"tn_discord/ChannelManager-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"ChannelManager","qualifiedName":"tn_discord.ChannelManager.ChannelManager","href":"tn_discord/ChannelManager/ChannelManager.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"ChannelManager","type":"class","href":"tn_discord/ChannelManager-class.html"}},{"name":"cache","qualifiedName":"tn_discord.ChannelManager.cache","href":"tn_discord/ChannelManager/cache.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"ChannelManager","type":"class","href":"tn_discord/ChannelManager-class.html"}},{"name":"fetch","qualifiedName":"tn_discord.ChannelManager.fetch","href":"tn_discord/ChannelManager/fetch.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"ChannelManager","type":"class","href":"tn_discord/ChannelManager-class.html"}},{"name":"Client","qualifiedName":"tn_discord.Client","href":"tn_discord/Client-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"The main hub for interacting with the Discord API, and the starting point for any bot.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Client","qualifiedName":"tn_discord.Client.Client","href":"tn_discord/Client/Client.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"Create a new Client.\nintents Intents to enable for this connection, it's a multiple of two.","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"guilds","qualifiedName":"tn_discord.Client.guilds","href":"tn_discord/Client/guilds.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"intents","qualifiedName":"tn_discord.Client.intents","href":"tn_discord/Client/intents.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"login","qualifiedName":"tn_discord.Client.login","href":"tn_discord/Client/login.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Logs the client in, establishing a WebSocket connection to Discord.\ntoken is the token of the account to log in with.\nGet the token from https://discord.dev","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"resumeGatewayURL","qualifiedName":"tn_discord.Client.resumeGatewayURL","href":"tn_discord/Client/resumeGatewayURL.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"sessionID","qualifiedName":"tn_discord.Client.sessionID","href":"tn_discord/Client/sessionID.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"token","qualifiedName":"tn_discord.Client.token","href":"tn_discord/Client/token.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"ws","qualifiedName":"tn_discord.Client.ws","href":"tn_discord/Client/ws.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Client","type":"class","href":"tn_discord/Client-class.html"}},{"name":"Collection","qualifiedName":"tn_discord.Collection","href":"tn_discord/Collection-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"A collection of variables. Like NodeJS' Map and discordjs' Collections\nThis will be moved to a separate package in the future.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Collection","qualifiedName":"tn_discord.Collection.Collection","href":"tn_discord/Collection/Collection.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"Create a new Collection","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"add","qualifiedName":"tn_discord.Collection.add","href":"tn_discord/Collection/add.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Sum to the value of key to value.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"delete","qualifiedName":"tn_discord.Collection.delete","href":"tn_discord/Collection/delete.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Alias of remove","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"get","qualifiedName":"tn_discord.Collection.get","href":"tn_discord/Collection/get.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Returns key from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"getAll","qualifiedName":"tn_discord.Collection.getAll","href":"tn_discord/Collection/getAll.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Returns all the variables as a Map.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"keys","qualifiedName":"tn_discord.Collection.keys","href":"tn_discord/Collection/keys.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Returns all the variables' keys as a List.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"remove","qualifiedName":"tn_discord.Collection.remove","href":"tn_discord/Collection/remove.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Removes key from the Map object.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"set","qualifiedName":"tn_discord.Collection.set","href":"tn_discord/Collection/set.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Adds a new element with key key and value value to the Map. If an element with the same key already exists, the element will be updated.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"subtract","qualifiedName":"tn_discord.Collection.subtract","href":"tn_discord/Collection/subtract.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Subtract value from the value of key.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"values","qualifiedName":"tn_discord.Collection.values","href":"tn_discord/Collection/values.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Returns all the variables' values as a List.","enclosedBy":{"name":"Collection","type":"class","href":"tn_discord/Collection-class.html"}},{"name":"Embed","qualifiedName":"tn_discord.Embed","href":"tn_discord/Embed.html","type":"typedef","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"GatewayIntentBits","qualifiedName":"tn_discord.GatewayIntentBits","href":"tn_discord/GatewayIntentBits-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"A list of all Gateway Intents Bits.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"AutoModerationConfiguration","qualifiedName":"tn_discord.GatewayIntentBits.AutoModerationConfiguration","href":"tn_discord/GatewayIntentBits/AutoModerationConfiguration-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"AutoModerationExecution","qualifiedName":"tn_discord.GatewayIntentBits.AutoModerationExecution","href":"tn_discord/GatewayIntentBits/AutoModerationExecution-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"DirectMessageReactions","qualifiedName":"tn_discord.GatewayIntentBits.DirectMessageReactions","href":"tn_discord/GatewayIntentBits/DirectMessageReactions-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"DirectMessageTyping","qualifiedName":"tn_discord.GatewayIntentBits.DirectMessageTyping","href":"tn_discord/GatewayIntentBits/DirectMessageTyping-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"DirectMessages","qualifiedName":"tn_discord.GatewayIntentBits.DirectMessages","href":"tn_discord/GatewayIntentBits/DirectMessages-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GatewayIntentBits","qualifiedName":"tn_discord.GatewayIntentBits.GatewayIntentBits","href":"tn_discord/GatewayIntentBits/GatewayIntentBits.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildEmojisAndStickers","qualifiedName":"tn_discord.GatewayIntentBits.GuildEmojisAndStickers","href":"tn_discord/GatewayIntentBits/GuildEmojisAndStickers-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildIntegrations","qualifiedName":"tn_discord.GatewayIntentBits.GuildIntegrations","href":"tn_discord/GatewayIntentBits/GuildIntegrations-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildInvites","qualifiedName":"tn_discord.GatewayIntentBits.GuildInvites","href":"tn_discord/GatewayIntentBits/GuildInvites-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMembers","qualifiedName":"tn_discord.GatewayIntentBits.GuildMembers","href":"tn_discord/GatewayIntentBits/GuildMembers-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMessageReactions","qualifiedName":"tn_discord.GatewayIntentBits.GuildMessageReactions","href":"tn_discord/GatewayIntentBits/GuildMessageReactions-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMessageTyping","qualifiedName":"tn_discord.GatewayIntentBits.GuildMessageTyping","href":"tn_discord/GatewayIntentBits/GuildMessageTyping-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildMessages","qualifiedName":"tn_discord.GatewayIntentBits.GuildMessages","href":"tn_discord/GatewayIntentBits/GuildMessages-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildModeration","qualifiedName":"tn_discord.GatewayIntentBits.GuildModeration","href":"tn_discord/GatewayIntentBits/GuildModeration-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildPresences","qualifiedName":"tn_discord.GatewayIntentBits.GuildPresences","href":"tn_discord/GatewayIntentBits/GuildPresences-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildScheduledEvents","qualifiedName":"tn_discord.GatewayIntentBits.GuildScheduledEvents","href":"tn_discord/GatewayIntentBits/GuildScheduledEvents-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildVoiceStates","qualifiedName":"tn_discord.GatewayIntentBits.GuildVoiceStates","href":"tn_discord/GatewayIntentBits/GuildVoiceStates-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"GuildWebhooks","qualifiedName":"tn_discord.GatewayIntentBits.GuildWebhooks","href":"tn_discord/GatewayIntentBits/GuildWebhooks-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"Guilds","qualifiedName":"tn_discord.GatewayIntentBits.Guilds","href":"tn_discord/GatewayIntentBits/Guilds-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"MessageContent","qualifiedName":"tn_discord.GatewayIntentBits.MessageContent","href":"tn_discord/GatewayIntentBits/MessageContent-constant.html","type":"constant","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GatewayIntentBits","type":"class","href":"tn_discord/GatewayIntentBits-class.html"}},{"name":"Guild","qualifiedName":"tn_discord.Guild","href":"tn_discord/Guild-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"Represents a guild (aka server) on Discord.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Guild","qualifiedName":"tn_discord.Guild.Guild","href":"tn_discord/Guild/Guild.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"channels","qualifiedName":"tn_discord.Guild.channels","href":"tn_discord/Guild/channels.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"description","qualifiedName":"tn_discord.Guild.description","href":"tn_discord/Guild/description.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"id","qualifiedName":"tn_discord.Guild.id","href":"tn_discord/Guild/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"joinedAt","qualifiedName":"tn_discord.Guild.joinedAt","href":"tn_discord/Guild/joinedAt.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"large","qualifiedName":"tn_discord.Guild.large","href":"tn_discord/Guild/large.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"memberCount","qualifiedName":"tn_discord.Guild.memberCount","href":"tn_discord/Guild/memberCount.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"members","qualifiedName":"tn_discord.Guild.members","href":"tn_discord/Guild/members.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"name","qualifiedName":"tn_discord.Guild.name","href":"tn_discord/Guild/name.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"ownerId","qualifiedName":"tn_discord.Guild.ownerId","href":"tn_discord/Guild/ownerId.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"roles","qualifiedName":"tn_discord.Guild.roles","href":"tn_discord/Guild/roles.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"unavailable","qualifiedName":"tn_discord.Guild.unavailable","href":"tn_discord/Guild/unavailable.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Guild","type":"class","href":"tn_discord/Guild-class.html"}},{"name":"GuildManager","qualifiedName":"tn_discord.GuildManager","href":"tn_discord/GuildManager-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"GuildManager","qualifiedName":"tn_discord.GuildManager.GuildManager","href":"tn_discord/GuildManager/GuildManager.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GuildManager","type":"class","href":"tn_discord/GuildManager-class.html"}},{"name":"cache","qualifiedName":"tn_discord.GuildManager.cache","href":"tn_discord/GuildManager/cache.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GuildManager","type":"class","href":"tn_discord/GuildManager-class.html"}},{"name":"fetch","qualifiedName":"tn_discord.GuildManager.fetch","href":"tn_discord/GuildManager/fetch.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"GuildManager","type":"class","href":"tn_discord/GuildManager-class.html"}},{"name":"Member","qualifiedName":"tn_discord.Member","href":"tn_discord/Member-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Member","qualifiedName":"tn_discord.Member.Member","href":"tn_discord/Member/Member.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Member","type":"class","href":"tn_discord/Member-class.html"}},{"name":"id","qualifiedName":"tn_discord.Member.id","href":"tn_discord/Member/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Member","type":"class","href":"tn_discord/Member-class.html"}},{"name":"user","qualifiedName":"tn_discord.Member.user","href":"tn_discord/Member/user.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Member","type":"class","href":"tn_discord/Member-class.html"}},{"name":"MemberManager","qualifiedName":"tn_discord.MemberManager","href":"tn_discord/MemberManager-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"MemberManager","qualifiedName":"tn_discord.MemberManager.MemberManager","href":"tn_discord/MemberManager/MemberManager.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"MemberManager","type":"class","href":"tn_discord/MemberManager-class.html"}},{"name":"cache","qualifiedName":"tn_discord.MemberManager.cache","href":"tn_discord/MemberManager/cache.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"MemberManager","type":"class","href":"tn_discord/MemberManager-class.html"}},{"name":"fetch","qualifiedName":"tn_discord.MemberManager.fetch","href":"tn_discord/MemberManager/fetch.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"MemberManager","type":"class","href":"tn_discord/MemberManager-class.html"}},{"name":"id","qualifiedName":"tn_discord.MemberManager.id","href":"tn_discord/MemberManager/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"MemberManager","type":"class","href":"tn_discord/MemberManager-class.html"}},{"name":"Message","qualifiedName":"tn_discord.Message","href":"tn_discord/Message-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"Represents a message on Discord.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Message","qualifiedName":"tn_discord.Message.Message","href":"tn_discord/Message/Message.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Message","type":"class","href":"tn_discord/Message-class.html"}},{"name":"content","qualifiedName":"tn_discord.Message.content","href":"tn_discord/Message/content.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Message","type":"class","href":"tn_discord/Message-class.html"}},{"name":"exportable","qualifiedName":"tn_discord.Message.exportable","href":"tn_discord/Message/exportable.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"Returns an object rapresentation of the message","enclosedBy":{"name":"Message","type":"class","href":"tn_discord/Message-class.html"}},{"name":"MessageSent","qualifiedName":"tn_discord.MessageSent","href":"tn_discord/MessageSent-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"Represents a sent message on Discord.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"MessageSent","qualifiedName":"tn_discord.MessageSent.MessageSent","href":"tn_discord/MessageSent/MessageSent.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"MessageSent","type":"class","href":"tn_discord/MessageSent-class.html"}},{"name":"id","qualifiedName":"tn_discord.MessageSent.id","href":"tn_discord/MessageSent/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"MessageSent","type":"class","href":"tn_discord/MessageSent-class.html"}},{"name":"Role","qualifiedName":"tn_discord.Role","href":"tn_discord/Role-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"Role","qualifiedName":"tn_discord.Role.Role","href":"tn_discord/Role/Role.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Role","type":"class","href":"tn_discord/Role-class.html"}},{"name":"id","qualifiedName":"tn_discord.Role.id","href":"tn_discord/Role/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Role","type":"class","href":"tn_discord/Role-class.html"}},{"name":"name","qualifiedName":"tn_discord.Role.name","href":"tn_discord/Role/name.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"Role","type":"class","href":"tn_discord/Role-class.html"}},{"name":"RoleManager","qualifiedName":"tn_discord.RoleManager","href":"tn_discord/RoleManager-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"RoleManager","qualifiedName":"tn_discord.RoleManager.RoleManager","href":"tn_discord/RoleManager/RoleManager.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"RoleManager","type":"class","href":"tn_discord/RoleManager-class.html"}},{"name":"cache","qualifiedName":"tn_discord.RoleManager.cache","href":"tn_discord/RoleManager/cache.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"RoleManager","type":"class","href":"tn_discord/RoleManager-class.html"}},{"name":"User","qualifiedName":"tn_discord.User","href":"tn_discord/User-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"User","qualifiedName":"tn_discord.User.User","href":"tn_discord/User/User.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"avatar","qualifiedName":"tn_discord.User.avatar","href":"tn_discord/User/avatar.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"bot","qualifiedName":"tn_discord.User.bot","href":"tn_discord/User/bot.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"discriminator","qualifiedName":"tn_discord.User.discriminator","href":"tn_discord/User/discriminator.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"displayName","qualifiedName":"tn_discord.User.displayName","href":"tn_discord/User/displayName.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"globalName","qualifiedName":"tn_discord.User.globalName","href":"tn_discord/User/globalName.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"id","qualifiedName":"tn_discord.User.id","href":"tn_discord/User/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"username","qualifiedName":"tn_discord.User.username","href":"tn_discord/User/username.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"User","type":"class","href":"tn_discord/User-class.html"}},{"name":"UserManager","qualifiedName":"tn_discord.UserManager","href":"tn_discord/UserManager-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"UserManager","qualifiedName":"tn_discord.UserManager.UserManager","href":"tn_discord/UserManager/UserManager.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"UserManager","type":"class","href":"tn_discord/UserManager-class.html"}},{"name":"cache","qualifiedName":"tn_discord.UserManager.cache","href":"tn_discord/UserManager/cache.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"UserManager","type":"class","href":"tn_discord/UserManager-class.html"}},{"name":"fetch","qualifiedName":"tn_discord.UserManager.fetch","href":"tn_discord/UserManager/fetch.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"UserManager","type":"class","href":"tn_discord/UserManager-class.html"}},{"name":"WebhookClient","qualifiedName":"tn_discord.WebhookClient","href":"tn_discord/WebhookClient-class.html","type":"class","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"WebhookClient","qualifiedName":"tn_discord.WebhookClient.WebhookClient","href":"tn_discord/WebhookClient/WebhookClient.html","type":"constructor","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"delete","qualifiedName":"tn_discord.WebhookClient.delete","href":"tn_discord/WebhookClient/delete.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"edit","qualifiedName":"tn_discord.WebhookClient.edit","href":"tn_discord/WebhookClient/edit.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"editText","qualifiedName":"tn_discord.WebhookClient.editText","href":"tn_discord/WebhookClient/editText.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"get","qualifiedName":"tn_discord.WebhookClient.get","href":"tn_discord/WebhookClient/get.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"id","qualifiedName":"tn_discord.WebhookClient.id","href":"tn_discord/WebhookClient/id.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"send","qualifiedName":"tn_discord.WebhookClient.send","href":"tn_discord/WebhookClient/send.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"sendText","qualifiedName":"tn_discord.WebhookClient.sendText","href":"tn_discord/WebhookClient/sendText.html","type":"method","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"token","qualifiedName":"tn_discord.WebhookClient.token","href":"tn_discord/WebhookClient/token.html","type":"property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"WebhookClient","type":"class","href":"tn_discord/WebhookClient-class.html"}},{"name":"apiURL","qualifiedName":"tn_discord.apiURL","href":"tn_discord/apiURL.html","type":"top-level property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"calculateIntents","qualifiedName":"tn_discord.calculateIntents","href":"tn_discord/calculateIntents.html","type":"function","overriddenDepth":0,"packageName":"tn_discord","desc":"This function calculate the intent number required from the gateway.\nintents is a list of multiples of two. You can use GatewayIntentBits class.\nReturn a number.","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}},{"name":"version","qualifiedName":"tn_discord.version","href":"tn_discord/version.html","type":"top-level property","overriddenDepth":0,"packageName":"tn_discord","desc":"","enclosedBy":{"name":"tn_discord","type":"library","href":"tn_discord/tn_discord-library.html"}}] diff --git a/doc/api/tn_discord/Channel-class.html b/doc/api/tn_discord/Channel-class.html new file mode 100644 index 0000000..7ae8d8e --- /dev/null +++ b/doc/api/tn_discord/Channel-class.html @@ -0,0 +1,306 @@ + + + + + + + + Channel class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Channel
    + +
    + +
    +
    +
    + +
    +
    +

    Channel class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + Channel(Sender _sender, dynamic data) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + name + String + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + send(Message message) + Future<MessageSent> + + + +
    +
    + + + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Channel/Channel.html b/doc/api/tn_discord/Channel/Channel.html new file mode 100644 index 0000000..48db084 --- /dev/null +++ b/doc/api/tn_discord/Channel/Channel.html @@ -0,0 +1,150 @@ + + + + + + + + Channel constructor - Channel - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Channel
    + +
    + +
    +
    +
    + +
    +
    +

    Channel constructor +

    + +
    + + Channel(
    1. Sender _sender,
    2. +
    3. dynamic data
    4. +
    ) +
    + + + + + +
    +

    Implementation

    +
    Channel(this._sender, data) {
    +  id = data["id"];
    +  name = data["name"];
    +}
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Channel/id.html b/doc/api/tn_discord/Channel/id.html new file mode 100644 index 0000000..6ed6381 --- /dev/null +++ b/doc/api/tn_discord/Channel/id.html @@ -0,0 +1,146 @@ + + + + + + + + id property - Channel class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id = '';
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Channel/name.html b/doc/api/tn_discord/Channel/name.html new file mode 100644 index 0000000..9759e87 --- /dev/null +++ b/doc/api/tn_discord/Channel/name.html @@ -0,0 +1,146 @@ + + + + + + + + name property - Channel class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    name
    + +
    + +
    +
    +
    + +
    +
    +

    name property +

    + +
    + + String + name +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String name = '';
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Channel/send.html b/doc/api/tn_discord/Channel/send.html new file mode 100644 index 0000000..3e3670e --- /dev/null +++ b/doc/api/tn_discord/Channel/send.html @@ -0,0 +1,153 @@ + + + + + + + + send method - Channel class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    send
    + +
    + +
    +
    +
    + +
    +
    +

    send method +

    + +
    + + +Future<MessageSent> +send(
    1. Message message
    2. +
    ) + + + +
    + + + + +
    +

    Implementation

    +
    Future<MessageSent> send(Message message) async {
    +  await _sender.send(message, id);
    +  return MessageSent(message, id: id);
    +}
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/ChannelManager-class.html b/doc/api/tn_discord/ChannelManager-class.html new file mode 100644 index 0000000..6c144a7 --- /dev/null +++ b/doc/api/tn_discord/ChannelManager-class.html @@ -0,0 +1,294 @@ + + + + + + + + ChannelManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    ChannelManager
    + +
    + +
    +
    +
    + +
    +
    +

    ChannelManager class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + ChannelManager(Sender _sender, List<Channel> channels) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + cache + Collection + +
    +
    + +
    final
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + fetch(String id) + Future<Channel> + + + +
    +
    + + + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/ChannelManager/ChannelManager.html b/doc/api/tn_discord/ChannelManager/ChannelManager.html new file mode 100644 index 0000000..4bcae0a --- /dev/null +++ b/doc/api/tn_discord/ChannelManager/ChannelManager.html @@ -0,0 +1,150 @@ + + + + + + + + ChannelManager constructor - ChannelManager - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    ChannelManager
    + +
    + +
    +
    +
    + +
    +
    +

    ChannelManager constructor +

    + +
    + + ChannelManager(
    1. Sender _sender,
    2. +
    3. List<Channel> channels
    4. +
    ) +
    + + + + + +
    +

    Implementation

    +
    ChannelManager(this._sender, List<Channel> channels) {
    +  for (var channel in channels) {
    +    cache.set(channel.id, channel);
    +  }
    +}
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/ChannelManager/cache.html b/doc/api/tn_discord/ChannelManager/cache.html new file mode 100644 index 0000000..0aa7393 --- /dev/null +++ b/doc/api/tn_discord/ChannelManager/cache.html @@ -0,0 +1,145 @@ + + + + + + + + cache property - ChannelManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    cache
    + +
    + +
    +
    +
    + +
    +
    +

    cache property +

    + +
    + + Collection + cache +
    final
    + +
    + + + +
    +

    Implementation

    +
    final Collection cache = Collection();
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/ChannelManager/fetch.html b/doc/api/tn_discord/ChannelManager/fetch.html new file mode 100644 index 0000000..83f6426 --- /dev/null +++ b/doc/api/tn_discord/ChannelManager/fetch.html @@ -0,0 +1,154 @@ + + + + + + + + fetch method - ChannelManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    fetch
    + +
    + +
    +
    +
    + +
    +
    +

    fetch method +

    + +
    + + +Future<Channel> +fetch(
    1. String id
    2. +
    ) + + + +
    + + + + +
    +

    Implementation

    +
    Future<Channel> fetch(String id) async {
    +  var res = await _sender.fetchChannel(id);
    +  dynamic channel = Channel(_sender, res);
    +  cache.set(channel.id, channel);
    +  return channel;
    +}
    +
    + + +
    + + + + + +
    + + + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client-class.html b/doc/api/tn_discord/Client-class.html index 7a970e4..ef4517c 100644 --- a/doc/api/tn_discord/Client-class.html +++ b/doc/api/tn_discord/Client-class.html @@ -57,6 +57,9 @@ +
    +

    The main hub for interacting with the Discord API, and the starting point for any bot.

    +
    @@ -65,7 +68,7 @@
    Inheritance
    @@ -88,49 +91,116 @@
    - Client({List<GatewayIntentBits> intents = const []}) + Client({int intents = 0})
    - + Create a new Client. +intents Intents to enable for this connection, it's a multiple of two.
    -
    +

    Properties

    +
    + guilds + GuildManager + +
    +
    + +
    read / write
    + +
    +
    - hashCode - int + hashCode + int
    The hash code for this object.
    read-onlyinherited
    +
    + +
    + intents + int + +
    +
    + +
    read / write
    +
    listeners - Set<EventListener> + Set<EventListener>
    List of all listeners active in the emitter.
    finalinherited
    +
    + +
    + resumeGatewayURL + String + +
    +
    + +
    read / write
    +
    - runtimeType - Type + runtimeType + Type
    A representation of the runtime type of the object.
    read-onlyinherited
    +
    + +
    + sessionID + String + +
    +
    + +
    read / write
    + +
    + +
    + token + String? + +
    +
    + +
    read / write
    + +
    + +
    + ws + WebSocket + +
    +
    + +
    read / write
    +
    @@ -138,13 +208,13 @@

    Methods

    addEventListener<T>(EventListener<T> listener) - bool + bool @@ -157,8 +227,8 @@ When an event is emitted, the listeners added will be matched.
    - emit<T>(String type, [T? data]) - bool + emit<T>(String type, [T? data]) + bool @@ -172,7 +242,7 @@ This will broadcast the message to all listeners that match the same eve
    emitEvent<T extends Event>(T event) - bool + bool @@ -182,10 +252,25 @@ This will broadcast the message to all listeners that match the same eve This will broadcast the event to all listeners that match the same event type and data type.
    inherited
    + + +
    + login(String token) + → dynamic + + + +
    +
    + Logs the client in, establishing a WebSocket connection to Discord. +token is the token of the account to log in with. +Get the token from https://discord.dev + +
    - noSuchMethod(Invocation invocation) + noSuchMethod(Invocation invocation) → dynamic @@ -198,8 +283,8 @@ This will broadcast the event to all listeners that match the same event
    - off<T>({String? type, EventCallback<T>? callback}) - bool + off<T>({String? type, EventCallback<T>? callback}) + bool @@ -211,7 +296,7 @@ This will broadcast the event to all listeners that match the same event
    - on<T>(String? type, EventCallback<T> callback) + on<T>(String? type, EventCallback<T> callback) EventListener<T> @@ -238,8 +323,8 @@ Calls the callback whenever there's a new event of the specified
    - once<T>(String? type, [EventCallback<T>? callback]) - Future<T> + once<T>(String? type, [EventCallback<T>? callback]) + Future<T> @@ -252,7 +337,7 @@ Calls the callback whenever there's a new event of the specified removeEventListener<T>(EventListener<T> listener) - bool + bool @@ -264,8 +349,8 @@ Calls the callback whenever there's a new event of the specified
    - toString() - String + toString() + String @@ -285,8 +370,8 @@ Calls the callback whenever there's a new event of the specified Operators
    - operator ==(Object other) - bool + operator ==(Object other) + bool @@ -323,8 +408,21 @@ Calls the callback whenever there's a new event of the specified tn_discord library
    1. Classes
    2. +
    3. Channel
    4. +
    5. ChannelManager
    6. Client
    7. +
    8. Collection
    9. GatewayIntentBits
    10. +
    11. Guild
    12. +
    13. GuildManager
    14. +
    15. Member
    16. +
    17. MemberManager
    18. +
    19. Message
    20. +
    21. MessageSent
    22. +
    23. Role
    24. +
    25. RoleManager
    26. +
    27. User
    28. +
    29. UserManager
    30. WebhookClient
    31. @@ -334,11 +432,12 @@ Calls the callback whenever there's a new event of the specified apiURL
    32. version
    33. +
    34. Functions
    35. +
    36. calculateIntents
    37. Typedefs
    38. Embed
    39. -
    40. Message
    @@ -351,27 +450,34 @@ Calls the callback whenever there's a new event of the specified Client -
  • +
  • Properties
  • -
  • hashCode
  • +
  • guilds
  • +
  • hashCode
  • +
  • intents
  • listeners
  • -
  • runtimeType
  • +
  • resumeGatewayURL
  • +
  • runtimeType
  • +
  • sessionID
  • +
  • token
  • +
  • ws
  • -
  • Methods
  • +
  • Methods
  • addEventListener
  • emit
  • emitEvent
  • -
  • noSuchMethod
  • +
  • login
  • +
  • noSuchMethod
  • off
  • on
  • onAny
  • once
  • removeEventListener
  • -
  • toString
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/Client/Client.html b/doc/api/tn_discord/Client/Client.html index 616b801..2fbb39e 100644 --- a/doc/api/tn_discord/Client/Client.html +++ b/doc/api/tn_discord/Client/Client.html @@ -58,17 +58,21 @@
    - Client(
    1. {List<GatewayIntentBits> intents = const []}
    2. + Client(
      1. {int intents = 0}
      )
    +
    +

    Create a new Client. +intents Intents to enable for this connection, it's a multiple of two.

    +

    Implementation

    -
    Client({List<GatewayIntentBits> intents = const []});
    +
    Client({this.intents = 0});
    @@ -96,27 +100,34 @@
  • Client
  • -
  • +
  • Properties
  • -
  • hashCode
  • +
  • guilds
  • +
  • hashCode
  • +
  • intents
  • listeners
  • -
  • runtimeType
  • +
  • resumeGatewayURL
  • +
  • runtimeType
  • +
  • sessionID
  • +
  • token
  • +
  • ws
  • -
  • Methods
  • +
  • Methods
  • addEventListener
  • emit
  • emitEvent
  • -
  • noSuchMethod
  • +
  • login
  • +
  • noSuchMethod
  • off
  • on
  • onAny
  • once
  • removeEventListener
  • -
  • toString
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/Client/guilds.html b/doc/api/tn_discord/Client/guilds.html new file mode 100644 index 0000000..3756f99 --- /dev/null +++ b/doc/api/tn_discord/Client/guilds.html @@ -0,0 +1,159 @@ + + + + + + + + guilds property - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    guilds
    + +
    + +
    +
    +
    + +
    +
    +

    guilds property +

    + +
    + + GuildManager + guilds +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    late GuildManager guilds;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client/intents.html b/doc/api/tn_discord/Client/intents.html new file mode 100644 index 0000000..524eb8d --- /dev/null +++ b/doc/api/tn_discord/Client/intents.html @@ -0,0 +1,159 @@ + + + + + + + + intents property - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    intents
    + +
    + +
    +
    +
    + +
    +
    +

    intents property +

    + +
    + + int + intents +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    int intents;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client/login.html b/doc/api/tn_discord/Client/login.html new file mode 100644 index 0000000..afff445 --- /dev/null +++ b/doc/api/tn_discord/Client/login.html @@ -0,0 +1,283 @@ + + + + + + + + login method - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    login
    + +
    + +
    +
    +
    + +
    +
    +

    login method +

    + +
    + + +dynamic +login(
    1. String token
    2. +
    ) + + + +
    + +
    +

    Logs the client in, establishing a WebSocket connection to Discord. +token is the token of the account to log in with. +Get the token from https://discord.dev

    +
    + + + +
    +

    Implementation

    +
    login(String token) async {
    +  final websocket = await requestWebSocketURL();
    +
    +  this.token = token;
    +
    +  ws = await WebSocket.connect(websocket);
    +
    +  dynamic payload = {
    +    "op": 2,
    +    'd': {
    +      "token": token,
    +      "intents": intents,
    +      "properties": {
    +        "os": Platform.operatingSystem,
    +        "browser": "tn_discord",
    +        "device": "tn_discord",
    +      },
    +    }
    +  };
    +
    +  ws.add(json.encode(payload));
    +
    +  reconnect() async {
    +    payload = {
    +      "op": 6,
    +      "d": {"token": token, "session_id": sessionID, "seq": 1337}
    +    };
    +
    +    ws = await WebSocket.connect(resumeGatewayURL);
    +    ws.add(json.encode(payload));
    +  }
    +
    +  sendHeartBeat() {
    +    payload = {"op": 1, "d": null};
    +    ws.add(json.encode(payload));
    +  }
    +
    +  heartbeatsender(int ms) {
    +    double jitter = 0.8; // number from 0 to 1
    +    Timer.periodic(Duration(milliseconds: (ms * jitter).round()), (timer) {
    +      sendHeartBeat();
    +    });
    +  }
    +
    +  Sender sender = Sender(token);
    +  var i = await sender.getServers();
    +
    +  List<Guild> gg = [];
    +
    +  for (dynamic g in i) {
    +    gg.add(Guild(sender, g));
    +  }
    +
    +  guilds = GuildManager(sender, gg);
    +
    +  int n = i.length;
    +
    +  ws.listen((event) {
    +    event = json.decode(event);
    +
    +    switch (event["op"]) {
    +      case 1:
    +        sendHeartBeat();
    +        break;
    +      case 10:
    +        heartbeatsender(event["d"]["heartbeat_interval"]);
    +        break;
    +      case 7:
    +      case 9:
    +        reconnect();
    +        break;
    +    }
    +
    +    var eventName = event["t"];
    +
    +    switch (eventName) {
    +      case "READY":
    +        resumeGatewayURL = event["d"]["resume_gateway_url"];
    +        sessionID = event["d"]["session_id"];
    +        break;
    +      case "GUILD_CREATE":
    +        guilds.cache.set(event["d"]["id"], Guild(sender, event["d"]));
    +        if (n > 1) {
    +          n--;
    +        } else {
    +          emit("READY");
    +        }
    +        break;
    +    }
    +  }, onDone: () {
    +    switch (ws.closeCode) {
    +      case 4000:
    +      case 4001:
    +      case 4002:
    +      case 4003:
    +      case 4005:
    +      case 4007:
    +      case 4008:
    +      case 4009:
    +        reconnect();
    +        break;
    +      case 4004:
    +        throw Exception("[4004] Disallowed Intents");
    +      case 4010:
    +        throw Exception("[4010] Invalid Shard");
    +      case 4011:
    +        throw Exception("[4011] Sharding Required");
    +      case 4012:
    +        throw Exception("[4012] Invalid API Version");
    +      case 4013:
    +        throw Exception("[4013] Invalid Intents");
    +      case 4014:
    +        throw Exception("[4014] Disallowed Intents");
    +    }
    +  });
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client/resumeGatewayURL.html b/doc/api/tn_discord/Client/resumeGatewayURL.html new file mode 100644 index 0000000..cd352f2 --- /dev/null +++ b/doc/api/tn_discord/Client/resumeGatewayURL.html @@ -0,0 +1,159 @@ + + + + + + + + resumeGatewayURL property - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    resumeGatewayURL
    + +
    + +
    +
    +
    + +
    +
    +

    resumeGatewayURL property +

    + +
    + + String + resumeGatewayURL +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String resumeGatewayURL = "";
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client/sessionID.html b/doc/api/tn_discord/Client/sessionID.html new file mode 100644 index 0000000..2b83bb8 --- /dev/null +++ b/doc/api/tn_discord/Client/sessionID.html @@ -0,0 +1,159 @@ + + + + + + + + sessionID property - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    sessionID
    + +
    + +
    +
    +
    + +
    +
    +

    sessionID property +

    + +
    + + String + sessionID +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String sessionID = "";
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client/token.html b/doc/api/tn_discord/Client/token.html new file mode 100644 index 0000000..df4843b --- /dev/null +++ b/doc/api/tn_discord/Client/token.html @@ -0,0 +1,159 @@ + + + + + + + + token property - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    token
    + +
    + +
    +
    +
    + +
    +
    +

    token property +

    + +
    + + String? + token +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String? token;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Client/ws.html b/doc/api/tn_discord/Client/ws.html new file mode 100644 index 0000000..1ba71bd --- /dev/null +++ b/doc/api/tn_discord/Client/ws.html @@ -0,0 +1,159 @@ + + + + + + + + ws property - Client class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    ws
    + +
    + +
    +
    +
    + +
    +
    +

    ws property +

    + +
    + + WebSocket + ws +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    late WebSocket ws;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection-class.html b/doc/api/tn_discord/Collection-class.html new file mode 100644 index 0000000..7371850 --- /dev/null +++ b/doc/api/tn_discord/Collection-class.html @@ -0,0 +1,398 @@ + + + + + + + + Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Collection
    + +
    + +
    +
    +
    + +
    +
    +

    Collection class + +

    + + +
    +

    A collection of variables. Like NodeJS' Map and discordjs' Collections +This will be moved to a separate package in the future.

    +
    + + + + +
    +

    Constructors

    + +
    +
    + Collection() +
    +
    + Create a new Collection +
    +
    +
    + +
    +

    Properties

    + +
    +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + add(String key, num value) + → dynamic + + + +
    +
    + Sum to the value of key to value. + + +
    + +
    + delete(String key) + → void + + + +
    +
    + Alias of remove + + +
    + +
    + get(String key) + → dynamic + + + +
    +
    + Returns key from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. + + +
    + +
    + getAll() + Map<String, dynamic> + + + +
    +
    + Returns all the variables as a Map. + + +
    + +
    + keys() + List<String> + + + +
    +
    + Returns all the variables' keys as a List. + + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + remove(String key) + → void + + + +
    +
    + Removes key from the Map object. + + +
    + +
    + set(String key, dynamic value) + → dynamic + + + +
    +
    + Adds a new element with key key and value value to the Map. If an element with the same key already exists, the element will be updated. + + +
    + +
    + subtract(String key, num value) + → dynamic + + + +
    +
    + Subtract value from the value of key. + + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    + values() + List + + + +
    +
    + Returns all the variables' values as a List. + + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/Collection.html b/doc/api/tn_discord/Collection/Collection.html new file mode 100644 index 0000000..a4c9a89 --- /dev/null +++ b/doc/api/tn_discord/Collection/Collection.html @@ -0,0 +1,154 @@ + + + + + + + + Collection constructor - Collection - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Collection
    + +
    + +
    +
    +
    + +
    +
    +

    Collection constructor +

    + +
    + + Collection() +
    + + +
    +

    Create a new Collection

    +
    + + + +
    +

    Implementation

    +
    Collection();
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/add.html b/doc/api/tn_discord/Collection/add.html new file mode 100644 index 0000000..736055b --- /dev/null +++ b/doc/api/tn_discord/Collection/add.html @@ -0,0 +1,163 @@ + + + + + + + + add method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    add
    + +
    + +
    +
    +
    + +
    +
    +

    add method +

    + +
    + + +dynamic +add(
    1. String key,
    2. +
    3. num value
    4. +
    ) + + + +
    + +
    +

    Sum to the value of key to value.

    +
    + + + +
    +

    Implementation

    +
    dynamic add(String key, num value) {
    +  _variables[key] += value;
    +  return value + _variables[key];
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/delete.html b/doc/api/tn_discord/Collection/delete.html new file mode 100644 index 0000000..9bb0787 --- /dev/null +++ b/doc/api/tn_discord/Collection/delete.html @@ -0,0 +1,161 @@ + + + + + + + + delete method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    delete
    + +
    + +
    +
    +
    + +
    +
    +

    delete method +

    + +
    + + +void +delete(
    1. String key
    2. +
    ) + + + +
    + +
    +

    Alias of remove

    +
    + + + +
    +

    Implementation

    +
    void delete(String key) {
    +  remove(key);
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/get.html b/doc/api/tn_discord/Collection/get.html new file mode 100644 index 0000000..9767c91 --- /dev/null +++ b/doc/api/tn_discord/Collection/get.html @@ -0,0 +1,164 @@ + + + + + + + + get method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    get
    + +
    + +
    +
    +
    + +
    +
    +

    get method +

    + +
    + + +dynamic +get(
    1. String key
    2. +
    ) + + + +
    + +
    +

    Returns key from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

    +
    + + + +
    +

    Implementation

    +
    dynamic get(String key) {
    +  if (_variables[key] == null) {
    +    throw Exception("Variable not found for $key");
    +  }
    +  return _variables[key];
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/getAll.html b/doc/api/tn_discord/Collection/getAll.html new file mode 100644 index 0000000..68f81b9 --- /dev/null +++ b/doc/api/tn_discord/Collection/getAll.html @@ -0,0 +1,160 @@ + + + + + + + + getAll method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    getAll
    + +
    + +
    +
    +
    + +
    +
    +

    getAll method +

    + +
    + + +Map<String, dynamic> +getAll() + + + +
    + +
    +

    Returns all the variables as a Map.

    +
    + + + +
    +

    Implementation

    +
    Map<String, dynamic> getAll() {
    +  return _variables;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/keys.html b/doc/api/tn_discord/Collection/keys.html new file mode 100644 index 0000000..66d7b6a --- /dev/null +++ b/doc/api/tn_discord/Collection/keys.html @@ -0,0 +1,160 @@ + + + + + + + + keys method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    keys
    + +
    + +
    +
    +
    + +
    +
    +

    keys method +

    + +
    + + +List<String> +keys() + + + +
    + +
    +

    Returns all the variables' keys as a List.

    +
    + + + +
    +

    Implementation

    +
    List<String> keys() {
    +  return _variables.keys.toList();
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/remove.html b/doc/api/tn_discord/Collection/remove.html new file mode 100644 index 0000000..074a197 --- /dev/null +++ b/doc/api/tn_discord/Collection/remove.html @@ -0,0 +1,161 @@ + + + + + + + + remove method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    remove
    + +
    + +
    +
    +
    + +
    +
    +

    remove method +

    + +
    + + +void +remove(
    1. String key
    2. +
    ) + + + +
    + +
    +

    Removes key from the Map object.

    +
    + + + +
    +

    Implementation

    +
    void remove(String key) {
    +  _variables.remove(key);
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/set.html b/doc/api/tn_discord/Collection/set.html new file mode 100644 index 0000000..f396aeb --- /dev/null +++ b/doc/api/tn_discord/Collection/set.html @@ -0,0 +1,163 @@ + + + + + + + + set method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    set
    + +
    + +
    +
    +
    + +
    +
    +

    set method +

    + +
    + + +dynamic +set(
    1. String key,
    2. +
    3. dynamic value
    4. +
    ) + + + +
    + +
    +

    Adds a new element with key key and value value to the Map. If an element with the same key already exists, the element will be updated.

    +
    + + + +
    +

    Implementation

    +
    dynamic set(String key, dynamic value) {
    +  _variables[key] = value;
    +  return value;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/subtract.html b/doc/api/tn_discord/Collection/subtract.html new file mode 100644 index 0000000..b0cee3c --- /dev/null +++ b/doc/api/tn_discord/Collection/subtract.html @@ -0,0 +1,163 @@ + + + + + + + + subtract method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    subtract
    + +
    + +
    +
    +
    + +
    +
    +

    subtract method +

    + +
    + + +dynamic +subtract(
    1. String key,
    2. +
    3. num value
    4. +
    ) + + + +
    + +
    +

    Subtract value from the value of key.

    +
    + + + +
    +

    Implementation

    +
    dynamic subtract(String key, num value) {
    +  _variables[key] -= value;
    +  return _variables[key] - value;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Collection/values.html b/doc/api/tn_discord/Collection/values.html new file mode 100644 index 0000000..dca0c1d --- /dev/null +++ b/doc/api/tn_discord/Collection/values.html @@ -0,0 +1,160 @@ + + + + + + + + values method - Collection class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    values
    + +
    + +
    +
    +
    + +
    +
    +

    values method +

    + +
    + + +List +values() + + + +
    + +
    +

    Returns all the variables' values as a List.

    +
    + + + +
    +

    Implementation

    +
    List<dynamic> values() {
    +  return _variables.values.toList();
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Embed.html b/doc/api/tn_discord/Embed.html index 3b0b254..c5518e8 100644 --- a/doc/api/tn_discord/Embed.html +++ b/doc/api/tn_discord/Embed.html @@ -59,7 +59,7 @@
    -Embed = Map<String, String> +Embed = Map<String, String>
    @@ -92,8 +92,21 @@
    tn_discord library
    1. Classes
    2. +
    3. Channel
    4. +
    5. ChannelManager
    6. Client
    7. +
    8. Collection
    9. GatewayIntentBits
    10. +
    11. Guild
    12. +
    13. GuildManager
    14. +
    15. Member
    16. +
    17. MemberManager
    18. +
    19. Message
    20. +
    21. MessageSent
    22. +
    23. Role
    24. +
    25. RoleManager
    26. +
    27. User
    28. +
    29. UserManager
    30. WebhookClient
    31. @@ -103,11 +116,12 @@
    32. apiURL
    33. version
    34. +
    35. Functions
    36. +
    37. calculateIntents
    38. Typedefs
    39. Embed
    40. -
    41. Message
    diff --git a/doc/api/tn_discord/GatewayIntentBits-class.html b/doc/api/tn_discord/GatewayIntentBits-class.html index 524b571..8078251 100644 --- a/doc/api/tn_discord/GatewayIntentBits-class.html +++ b/doc/api/tn_discord/GatewayIntentBits-class.html @@ -57,6 +57,9 @@ +
    +

    A list of all Gateway Intents Bits.

    +
    @@ -79,8 +82,8 @@
    - hashCode - int + hashCode + int
    @@ -90,8 +93,8 @@
    - runtimeType - Type + runtimeType + Type
    @@ -110,7 +113,7 @@

    Methods

    - noSuchMethod(Invocation invocation) + noSuchMethod(Invocation invocation) → dynamic @@ -123,8 +126,8 @@
    - toString() - String + toString() + String @@ -144,8 +147,8 @@

    Operators

    - operator ==(Object other) - bool + operator ==(Object other) + bool @@ -168,7 +171,7 @@
    AutoModerationConfiguration - → const int + → const int
    @@ -183,7 +186,7 @@
    AutoModerationExecution - → const int + → const int
    @@ -198,7 +201,7 @@
    DirectMessageReactions - → const int + → const int
    @@ -213,7 +216,7 @@
    DirectMessages - → const int + → const int
    @@ -228,7 +231,7 @@
    DirectMessageTyping - → const int + → const int
    @@ -243,7 +246,7 @@
    GuildEmojisAndStickers - → const int + → const int
    @@ -258,7 +261,7 @@
    GuildIntegrations - → const int + → const int
    @@ -273,7 +276,7 @@
    GuildInvites - → const int + → const int
    @@ -288,7 +291,7 @@
    GuildMembers - → const int + → const int
    @@ -303,7 +306,7 @@
    GuildMessageReactions - → const int + → const int
    @@ -318,7 +321,7 @@
    GuildMessages - → const int + → const int
    @@ -333,7 +336,7 @@
    GuildMessageTyping - → const int + → const int
    @@ -348,7 +351,7 @@
    GuildModeration - → const int + → const int
    @@ -363,7 +366,7 @@
    GuildPresences - → const int + → const int
    @@ -378,7 +381,7 @@
    Guilds - → const int + → const int
    @@ -393,7 +396,7 @@
    GuildScheduledEvents - → const int + → const int
    @@ -408,7 +411,7 @@
    GuildVoiceStates - → const int + → const int
    @@ -423,7 +426,7 @@
    GuildWebhooks - → const int + → const int
    @@ -438,7 +441,7 @@
    MessageContent - → const int + → const int
    @@ -473,8 +476,21 @@
    tn_discord library
    1. Classes
    2. +
    3. Channel
    4. +
    5. ChannelManager
    6. Client
    7. +
    8. Collection
    9. GatewayIntentBits
    10. +
    11. Guild
    12. +
    13. GuildManager
    14. +
    15. Member
    16. +
    17. MemberManager
    18. +
    19. Message
    20. +
    21. MessageSent
    22. +
    23. Role
    24. +
    25. RoleManager
    26. +
    27. User
    28. +
    29. UserManager
    30. WebhookClient
    31. @@ -484,11 +500,12 @@
    32. apiURL
    33. version
    34. +
    35. Functions
    36. +
    37. calculateIntents
    38. Typedefs
    39. Embed
    40. -
    41. Message
    @@ -504,15 +521,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/AutoModerationConfiguration-constant.html b/doc/api/tn_discord/GatewayIntentBits/AutoModerationConfiguration-constant.html index 1cd4c72..c8dfa69 100644 --- a/doc/api/tn_discord/GatewayIntentBits/AutoModerationConfiguration-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/AutoModerationConfiguration-constant.html @@ -58,7 +58,7 @@
    - int + int const AutoModerationConfiguration @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/AutoModerationExecution-constant.html b/doc/api/tn_discord/GatewayIntentBits/AutoModerationExecution-constant.html index c5b857d..76c8770 100644 --- a/doc/api/tn_discord/GatewayIntentBits/AutoModerationExecution-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/AutoModerationExecution-constant.html @@ -58,7 +58,7 @@
    - int + int const AutoModerationExecution @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/DirectMessageReactions-constant.html b/doc/api/tn_discord/GatewayIntentBits/DirectMessageReactions-constant.html index 684d6fe..2bd100a 100644 --- a/doc/api/tn_discord/GatewayIntentBits/DirectMessageReactions-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/DirectMessageReactions-constant.html @@ -58,7 +58,7 @@
    - int + int const DirectMessageReactions @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/DirectMessageTyping-constant.html b/doc/api/tn_discord/GatewayIntentBits/DirectMessageTyping-constant.html index ae0eb8b..2e9a744 100644 --- a/doc/api/tn_discord/GatewayIntentBits/DirectMessageTyping-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/DirectMessageTyping-constant.html @@ -58,7 +58,7 @@
    - int + int const DirectMessageTyping @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/DirectMessages-constant.html b/doc/api/tn_discord/GatewayIntentBits/DirectMessages-constant.html index 4b0eb5d..6d06293 100644 --- a/doc/api/tn_discord/GatewayIntentBits/DirectMessages-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/DirectMessages-constant.html @@ -58,7 +58,7 @@
    - int + int const DirectMessages @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GatewayIntentBits.html b/doc/api/tn_discord/GatewayIntentBits/GatewayIntentBits.html index 53bda31..7d30b05 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GatewayIntentBits.html +++ b/doc/api/tn_discord/GatewayIntentBits/GatewayIntentBits.html @@ -94,15 +94,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildEmojisAndStickers-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildEmojisAndStickers-constant.html index 76cca9e..707c95f 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildEmojisAndStickers-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildEmojisAndStickers-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildEmojisAndStickers @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildIntegrations-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildIntegrations-constant.html index d998e22..b4f1525 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildIntegrations-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildIntegrations-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildIntegrations @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildInvites-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildInvites-constant.html index adf4f12..1d09a7e 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildInvites-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildInvites-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildInvites @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildMembers-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildMembers-constant.html index 0fe365a..488f915 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildMembers-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildMembers-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildMembers @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildMessageReactions-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildMessageReactions-constant.html index bb2409c..800d834 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildMessageReactions-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildMessageReactions-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildMessageReactions @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildMessageTyping-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildMessageTyping-constant.html index 0ba6a26..f98da4a 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildMessageTyping-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildMessageTyping-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildMessageTyping @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildMessages-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildMessages-constant.html index 7d59291..9773f36 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildMessages-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildMessages-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildMessages @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildModeration-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildModeration-constant.html index 4dd00a6..b2fa3a1 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildModeration-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildModeration-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildModeration @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildPresences-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildPresences-constant.html index 405fca0..077ce73 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildPresences-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildPresences-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildPresences @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildScheduledEvents-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildScheduledEvents-constant.html index 43adaa1..a1105c0 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildScheduledEvents-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildScheduledEvents-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildScheduledEvents @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildVoiceStates-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildVoiceStates-constant.html index 5019621..9f6fdd2 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildVoiceStates-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildVoiceStates-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildVoiceStates @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/GuildWebhooks-constant.html b/doc/api/tn_discord/GatewayIntentBits/GuildWebhooks-constant.html index bdf7a67..dd8077b 100644 --- a/doc/api/tn_discord/GatewayIntentBits/GuildWebhooks-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/GuildWebhooks-constant.html @@ -58,7 +58,7 @@
    - int + int const GuildWebhooks @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/Guilds-constant.html b/doc/api/tn_discord/GatewayIntentBits/Guilds-constant.html index ad25970..4887ad7 100644 --- a/doc/api/tn_discord/GatewayIntentBits/Guilds-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/Guilds-constant.html @@ -58,7 +58,7 @@
    - int + int const Guilds @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/GatewayIntentBits/MessageContent-constant.html b/doc/api/tn_discord/GatewayIntentBits/MessageContent-constant.html index 7aac2ac..bf14352 100644 --- a/doc/api/tn_discord/GatewayIntentBits/MessageContent-constant.html +++ b/doc/api/tn_discord/GatewayIntentBits/MessageContent-constant.html @@ -58,7 +58,7 @@
    - int + int const MessageContent @@ -99,15 +99,15 @@
  • Properties
  • -
  • hashCode
  • -
  • runtimeType
  • +
  • hashCode
  • +
  • runtimeType
  • Methods
  • -
  • noSuchMethod
  • -
  • toString
  • +
  • noSuchMethod
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/Guild-class.html b/doc/api/tn_discord/Guild-class.html new file mode 100644 index 0000000..d97e225 --- /dev/null +++ b/doc/api/tn_discord/Guild-class.html @@ -0,0 +1,403 @@ + + + + + + + + Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Guild
    + +
    + +
    +
    +
    + +
    +
    +

    Guild class + +

    + + +
    +

    Represents a guild (aka server) on Discord.

    +
    + + + + +
    +

    Constructors

    + +
    +
    + Guild(Sender _sender, Map data) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + channels + ChannelManager? + +
    +
    + +
    read / write
    + +
    + +
    + description + String? + +
    +
    + +
    read / write
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + joinedAt + String? + +
    +
    + +
    read / write
    + +
    + +
    + large + bool? + +
    +
    + +
    read / write
    + +
    + +
    + memberCount + int? + +
    +
    + +
    read / write
    + +
    + +
    + members + MemberManager? + +
    +
    + +
    read / write
    + +
    + +
    + name + String? + +
    +
    + +
    read / write
    + +
    + +
    + ownerId + String? + +
    +
    + +
    read / write
    + +
    + +
    + roles + RoleManager? + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    + unavailable + bool? + +
    +
    + +
    read / write
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/Guild.html b/doc/api/tn_discord/Guild/Guild.html new file mode 100644 index 0000000..c0cdc89 --- /dev/null +++ b/doc/api/tn_discord/Guild/Guild.html @@ -0,0 +1,198 @@ + + + + + + + + Guild constructor - Guild - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Guild
    + +
    + +
    +
    +
    + +
    +
    +

    Guild constructor +

    + +
    + + Guild(
    1. Sender _sender,
    2. +
    3. Map data
    4. +
    ) +
    + + + + + +
    +

    Implementation

    +
    Guild(this._sender, Map data) {
    +  id = data["id"];
    +  if (data["unavailable"] != null && data["unavailable"] == false) {
    +    unavailable = data["unavailable"];
    +    name = data["name"];
    +    description = data["description"];
    +    ownerId = data["owner_id"];
    +    if (data["joined_at"] != null) {
    +      joinedAt = data["joined_at"];
    +    }
    +    if (data["large"] != null) {
    +      large = data["large"];
    +    }
    +    if (data["member_count"] != null) {
    +      memberCount = data["member_count"];
    +    }
    +
    +    if(data["channels"] != null && data["members"] != null && data["roles"] != null) {
    +      List<Channel> cc = [];
    +      for (var c in data["channels"]) {
    +        cc.add(Channel(_sender, c));
    +      }
    +      channels = ChannelManager(_sender, cc);
    +
    +      List<Member> mm = [];
    +      for (var m in data["members"]) {
    +        mm.add(Member(m));
    +      }
    +      members = MemberManager(mm, id);
    +
    +      List<Role> rr = [];
    +      for (var r in data["roles"]) {
    +        rr.add(Role(r));
    +      }
    +      roles = RoleManager(rr);
    +    } else {
    +      channels = ChannelManager(_sender, []);
    +      members = MemberManager([], id);
    +      roles = RoleManager([]);
    +    }
    +  } else {
    +    unavailable = data["unavailable"];
    +  }
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/channels.html b/doc/api/tn_discord/Guild/channels.html new file mode 100644 index 0000000..bed28d2 --- /dev/null +++ b/doc/api/tn_discord/Guild/channels.html @@ -0,0 +1,154 @@ + + + + + + + + channels property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    channels
    + +
    + +
    +
    +
    + +
    +
    +

    channels property +

    + +
    + + ChannelManager? + channels +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    ChannelManager? channels;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/description.html b/doc/api/tn_discord/Guild/description.html new file mode 100644 index 0000000..ef8f78b --- /dev/null +++ b/doc/api/tn_discord/Guild/description.html @@ -0,0 +1,154 @@ + + + + + + + + description property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    description
    + +
    + +
    +
    +
    + +
    +
    +

    description property +

    + +
    + + String? + description +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String? description;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/id.html b/doc/api/tn_discord/Guild/id.html new file mode 100644 index 0000000..1634feb --- /dev/null +++ b/doc/api/tn_discord/Guild/id.html @@ -0,0 +1,154 @@ + + + + + + + + id property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/joinedAt.html b/doc/api/tn_discord/Guild/joinedAt.html new file mode 100644 index 0000000..fc90eea --- /dev/null +++ b/doc/api/tn_discord/Guild/joinedAt.html @@ -0,0 +1,154 @@ + + + + + + + + joinedAt property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    joinedAt
    + +
    + +
    +
    +
    + +
    +
    +

    joinedAt property +

    + +
    + + String? + joinedAt +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String? joinedAt;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/large.html b/doc/api/tn_discord/Guild/large.html new file mode 100644 index 0000000..bb748eb --- /dev/null +++ b/doc/api/tn_discord/Guild/large.html @@ -0,0 +1,154 @@ + + + + + + + + large property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    large
    + +
    + +
    +
    +
    + +
    +
    +

    large property +

    + +
    + + bool? + large +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    bool? large;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/memberCount.html b/doc/api/tn_discord/Guild/memberCount.html new file mode 100644 index 0000000..c737a66 --- /dev/null +++ b/doc/api/tn_discord/Guild/memberCount.html @@ -0,0 +1,154 @@ + + + + + + + + memberCount property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    memberCount
    + +
    + +
    +
    +
    + +
    +
    +

    memberCount property +

    + +
    + + int? + memberCount +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    int? memberCount;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/members.html b/doc/api/tn_discord/Guild/members.html new file mode 100644 index 0000000..6a4fe18 --- /dev/null +++ b/doc/api/tn_discord/Guild/members.html @@ -0,0 +1,154 @@ + + + + + + + + members property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    members
    + +
    + +
    +
    +
    + +
    +
    +

    members property +

    + +
    + + MemberManager? + members +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    MemberManager? members;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/name.html b/doc/api/tn_discord/Guild/name.html new file mode 100644 index 0000000..422e511 --- /dev/null +++ b/doc/api/tn_discord/Guild/name.html @@ -0,0 +1,154 @@ + + + + + + + + name property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    name
    + +
    + +
    +
    +
    + +
    +
    +

    name property +

    + +
    + + String? + name +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String? name = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/ownerId.html b/doc/api/tn_discord/Guild/ownerId.html new file mode 100644 index 0000000..70af859 --- /dev/null +++ b/doc/api/tn_discord/Guild/ownerId.html @@ -0,0 +1,154 @@ + + + + + + + + ownerId property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    ownerId
    + +
    + +
    +
    +
    + +
    +
    +

    ownerId property +

    + +
    + + String? + ownerId +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String? ownerId;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/roles.html b/doc/api/tn_discord/Guild/roles.html new file mode 100644 index 0000000..486f040 --- /dev/null +++ b/doc/api/tn_discord/Guild/roles.html @@ -0,0 +1,154 @@ + + + + + + + + roles property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    roles
    + +
    + +
    +
    +
    + +
    +
    +

    roles property +

    + +
    + + RoleManager? + roles +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    RoleManager? roles;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Guild/unavailable.html b/doc/api/tn_discord/Guild/unavailable.html new file mode 100644 index 0000000..0e3c060 --- /dev/null +++ b/doc/api/tn_discord/Guild/unavailable.html @@ -0,0 +1,154 @@ + + + + + + + + unavailable property - Guild class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    unavailable
    + +
    + +
    +
    +
    + +
    +
    +

    unavailable property +

    + +
    + + bool? + unavailable +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    bool? unavailable;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/GuildManager-class.html b/doc/api/tn_discord/GuildManager-class.html new file mode 100644 index 0000000..ed29f38 --- /dev/null +++ b/doc/api/tn_discord/GuildManager-class.html @@ -0,0 +1,294 @@ + + + + + + + + GuildManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    GuildManager
    + +
    + +
    +
    +
    + +
    +
    +

    GuildManager class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + GuildManager(Sender _sender, List<Guild> guilds) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + cache + Collection + +
    +
    + +
    final
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + fetch(String id) + Future<Guild> + + + +
    +
    + + + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/GuildManager/GuildManager.html b/doc/api/tn_discord/GuildManager/GuildManager.html new file mode 100644 index 0000000..c2a011c --- /dev/null +++ b/doc/api/tn_discord/GuildManager/GuildManager.html @@ -0,0 +1,150 @@ + + + + + + + + GuildManager constructor - GuildManager - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    GuildManager
    + +
    + +
    +
    +
    + +
    +
    +

    GuildManager constructor +

    + +
    + + GuildManager(
    1. Sender _sender,
    2. +
    3. List<Guild> guilds
    4. +
    ) +
    + + + + + +
    +

    Implementation

    +
    GuildManager(this._sender, List<Guild> guilds) {
    +  for (var guild in guilds) {
    +    cache.set(guild.id, guild);
    +  }
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/GuildManager/cache.html b/doc/api/tn_discord/GuildManager/cache.html new file mode 100644 index 0000000..767ef58 --- /dev/null +++ b/doc/api/tn_discord/GuildManager/cache.html @@ -0,0 +1,145 @@ + + + + + + + + cache property - GuildManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    cache
    + +
    + +
    +
    +
    + +
    +
    +

    cache property +

    + +
    + + Collection + cache +
    final
    + +
    + + + +
    +

    Implementation

    +
    final Collection cache = Collection();
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/GuildManager/fetch.html b/doc/api/tn_discord/GuildManager/fetch.html new file mode 100644 index 0000000..508324d --- /dev/null +++ b/doc/api/tn_discord/GuildManager/fetch.html @@ -0,0 +1,159 @@ + + + + + + + + fetch method - GuildManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    fetch
    + +
    + +
    +
    +
    + +
    +
    +

    fetch method +

    + +
    + + +Future<Guild> +fetch(
    1. String id
    2. +
    ) + + + +
    + + + + +
    +

    Implementation

    +
    Future<Guild> fetch(String id) async {
    +  var res = await _sender.fetchGuild(id);
    +  final guild = Guild(_sender, res);
    +  final oldGuild = cache.get(guild.id);
    +  guild.joinedAt = oldGuild.joinedAt;
    +  guild.large = oldGuild.large;
    +  guild.unavailable = oldGuild.unavailable;
    +  guild.memberCount = oldGuild.memberCount;
    +  cache.set(guild.id, guild);
    +  return guild;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Member-class.html b/doc/api/tn_discord/Member-class.html new file mode 100644 index 0000000..fe28076 --- /dev/null +++ b/doc/api/tn_discord/Member-class.html @@ -0,0 +1,292 @@ + + + + + + + + Member class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Member
    + +
    + +
    +
    +
    + +
    +
    +

    Member class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + Member(Map data) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    + user + User + +
    +
    + +
    read / write
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Member/Member.html b/doc/api/tn_discord/Member/Member.html new file mode 100644 index 0000000..d98924a --- /dev/null +++ b/doc/api/tn_discord/Member/Member.html @@ -0,0 +1,148 @@ + + + + + + + + Member constructor - Member - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Member
    + +
    + +
    +
    +
    + +
    +
    +

    Member constructor +

    + +
    + + Member(
    1. Map data
    2. +
    ) +
    + + + + + +
    +

    Implementation

    +
    Member(Map data) {
    +  id = data["user"]["id"];
    +  user = User(data["user"]);
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Member/id.html b/doc/api/tn_discord/Member/id.html new file mode 100644 index 0000000..1056909 --- /dev/null +++ b/doc/api/tn_discord/Member/id.html @@ -0,0 +1,145 @@ + + + + + + + + id property - Member class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Member/user.html b/doc/api/tn_discord/Member/user.html new file mode 100644 index 0000000..435804f --- /dev/null +++ b/doc/api/tn_discord/Member/user.html @@ -0,0 +1,145 @@ + + + + + + + + user property - Member class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    user
    + +
    + +
    +
    +
    + +
    +
    +

    user property +

    + +
    + + User + user +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    User user = User({});
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MemberManager-class.html b/doc/api/tn_discord/MemberManager-class.html new file mode 100644 index 0000000..2af4fce --- /dev/null +++ b/doc/api/tn_discord/MemberManager-class.html @@ -0,0 +1,306 @@ + + + + + + + + MemberManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    MemberManager
    + +
    + +
    +
    +
    + +
    +
    +

    MemberManager class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + MemberManager(List<Member> members, String id) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + cache + Collection + +
    +
    + +
    final
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + fetch(String id) + → dynamic + + + +
    +
    + + + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MemberManager/MemberManager.html b/doc/api/tn_discord/MemberManager/MemberManager.html new file mode 100644 index 0000000..88f16c4 --- /dev/null +++ b/doc/api/tn_discord/MemberManager/MemberManager.html @@ -0,0 +1,151 @@ + + + + + + + + MemberManager constructor - MemberManager - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    MemberManager
    + +
    + +
    +
    +
    + +
    +
    +

    MemberManager constructor +

    + +
    + + MemberManager(
    1. List<Member> members,
    2. +
    3. String id
    4. +
    ) +
    + + + + + +
    +

    Implementation

    +
    MemberManager(List<Member> members, this.id) {
    +  for (var member in members) {
    +    cache.set(member.id, member);
    +  }
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MemberManager/cache.html b/doc/api/tn_discord/MemberManager/cache.html new file mode 100644 index 0000000..d2b6a97 --- /dev/null +++ b/doc/api/tn_discord/MemberManager/cache.html @@ -0,0 +1,146 @@ + + + + + + + + cache property - MemberManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    cache
    + +
    + +
    +
    +
    + +
    +
    +

    cache property +

    + +
    + + Collection + cache +
    final
    + +
    + + + +
    +

    Implementation

    +
    final Collection cache = Collection();
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MemberManager/fetch.html b/doc/api/tn_discord/MemberManager/fetch.html new file mode 100644 index 0000000..80cd562 --- /dev/null +++ b/doc/api/tn_discord/MemberManager/fetch.html @@ -0,0 +1,159 @@ + + + + + + + + fetch method - MemberManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    fetch
    + +
    + +
    +
    +
    + +
    +
    +

    fetch method +

    + +
    + + +dynamic +fetch(
    1. String id
    2. +
    ) + + + +
    + + + + +
    +

    Implementation

    +
    fetch(String id) async {
    +  dynamic res = await http.get(Uri.parse("$apiURL/guilds/${this.id}/members/$id"));
    +  if (res.statusCode != 200) {
    +    throw Exception("Error ${res.statusCode} receiving the member");
    +  }
    +
    +  res = json.decode(res.body);
    +  cache.set(id, res);
    +  return res;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MemberManager/id.html b/doc/api/tn_discord/MemberManager/id.html new file mode 100644 index 0000000..59ae69c --- /dev/null +++ b/doc/api/tn_discord/MemberManager/id.html @@ -0,0 +1,146 @@ + + + + + + + + id property - MemberManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Message-class.html b/doc/api/tn_discord/Message-class.html new file mode 100644 index 0000000..bb0b1c8 --- /dev/null +++ b/doc/api/tn_discord/Message-class.html @@ -0,0 +1,315 @@ + + + + + + + + Message class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Message
    + +
    + +
    +
    +
    + +
    +
    +

    Message class + +

    + + +
    +

    Represents a message on Discord.

    +
    + + +
    +
    + + + + + +
    Implementers
    +
    + + + + + +
    +
    + + +
    +

    Constructors

    + +
    +
    + Message({String? content}) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + content + String? + +
    +
    + +
    read / write
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + exportable() + → dynamic + + + +
    +
    + Returns an object rapresentation of the message + + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Message/Message.html b/doc/api/tn_discord/Message/Message.html new file mode 100644 index 0000000..70b88ff --- /dev/null +++ b/doc/api/tn_discord/Message/Message.html @@ -0,0 +1,145 @@ + + + + + + + + Message constructor - Message - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Message
    + +
    + +
    +
    +
    + +
    +
    +

    Message constructor +

    + +
    + + Message(
    1. {String? content}
    2. +
    ) +
    + + + + + +
    +

    Implementation

    +
    Message({ this.content });
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Message/content.html b/doc/api/tn_discord/Message/content.html new file mode 100644 index 0000000..c18c65f --- /dev/null +++ b/doc/api/tn_discord/Message/content.html @@ -0,0 +1,145 @@ + + + + + + + + content property - Message class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    content
    + +
    + +
    +
    +
    + +
    +
    +

    content property +

    + +
    + + String? + content +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String? content;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Message/exportable.html b/doc/api/tn_discord/Message/exportable.html new file mode 100644 index 0000000..779af42 --- /dev/null +++ b/doc/api/tn_discord/Message/exportable.html @@ -0,0 +1,155 @@ + + + + + + + + exportable method - Message class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    exportable
    + +
    + +
    +
    +
    + +
    +
    +

    exportable method +

    + +
    + + +dynamic +exportable() + + + +
    + +
    +

    Returns an object rapresentation of the message

    +
    + + + +
    +

    Implementation

    +
    exportable() {
    +  return {
    +    "content": content,
    +  };
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MessageSent-class.html b/doc/api/tn_discord/MessageSent-class.html new file mode 100644 index 0000000..2516182 --- /dev/null +++ b/doc/api/tn_discord/MessageSent-class.html @@ -0,0 +1,331 @@ + + + + + + + + MessageSent class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    MessageSent
    + +
    + +
    +
    +
    + +
    +
    +

    MessageSent class + +

    + + +
    +

    Represents a sent message on Discord.

    +
    + + +
    +
    + +
    Inheritance
    +
    + +
    + + + + + + + + + +
    +
    + + +
    +

    Constructors

    + +
    +
    + MessageSent(Message msg, {required String id}) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + content + String? + +
    +
    + +
    read / writeinherited
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + exportable() + → dynamic + + + +
    +
    + Returns an object rapresentation of the message +
    inherited
    + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MessageSent/MessageSent.html b/doc/api/tn_discord/MessageSent/MessageSent.html new file mode 100644 index 0000000..9c6a496 --- /dev/null +++ b/doc/api/tn_discord/MessageSent/MessageSent.html @@ -0,0 +1,149 @@ + + + + + + + + MessageSent constructor - MessageSent - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    MessageSent
    + +
    + +
    +
    +
    + +
    +
    +

    MessageSent constructor +

    + +
    + + MessageSent(
    1. Message msg,
    2. +
    3. {required String id}
    4. +
    ) +
    + + + + + +
    +

    Implementation

    +
    MessageSent(Message msg, { required this.id }) {
    +  content = msg.content;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/MessageSent/id.html b/doc/api/tn_discord/MessageSent/id.html new file mode 100644 index 0000000..379afbe --- /dev/null +++ b/doc/api/tn_discord/MessageSent/id.html @@ -0,0 +1,146 @@ + + + + + + + + id property - MessageSent class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Role-class.html b/doc/api/tn_discord/Role-class.html new file mode 100644 index 0000000..c832ace --- /dev/null +++ b/doc/api/tn_discord/Role-class.html @@ -0,0 +1,292 @@ + + + + + + + + Role class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Role
    + +
    + +
    +
    +
    + +
    +
    +

    Role class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + Role(Map data) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + name + String + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Role/Role.html b/doc/api/tn_discord/Role/Role.html new file mode 100644 index 0000000..e124ae2 --- /dev/null +++ b/doc/api/tn_discord/Role/Role.html @@ -0,0 +1,148 @@ + + + + + + + + Role constructor - Role - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    Role
    + +
    + +
    +
    +
    + +
    +
    +

    Role constructor +

    + +
    + + Role(
    1. Map data
    2. +
    ) +
    + + + + + +
    +

    Implementation

    +
    Role(Map data) {
    +  id = data["id"];
    +  name = data["name"];
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Role/id.html b/doc/api/tn_discord/Role/id.html new file mode 100644 index 0000000..582ff7f --- /dev/null +++ b/doc/api/tn_discord/Role/id.html @@ -0,0 +1,145 @@ + + + + + + + + id property - Role class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/Role/name.html b/doc/api/tn_discord/Role/name.html new file mode 100644 index 0000000..1918ce7 --- /dev/null +++ b/doc/api/tn_discord/Role/name.html @@ -0,0 +1,145 @@ + + + + + + + + name property - Role class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    name
    + +
    + +
    +
    +
    + +
    +
    +

    name property +

    + +
    + + String + name +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String name = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/RoleManager-class.html b/doc/api/tn_discord/RoleManager-class.html new file mode 100644 index 0000000..5daf17c --- /dev/null +++ b/doc/api/tn_discord/RoleManager-class.html @@ -0,0 +1,280 @@ + + + + + + + + RoleManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    RoleManager
    + +
    + +
    +
    +
    + +
    +
    +

    RoleManager class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + RoleManager(List<Role> roles) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + cache + Collection + +
    +
    + +
    final
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/RoleManager/RoleManager.html b/doc/api/tn_discord/RoleManager/RoleManager.html new file mode 100644 index 0000000..968633b --- /dev/null +++ b/doc/api/tn_discord/RoleManager/RoleManager.html @@ -0,0 +1,148 @@ + + + + + + + + RoleManager constructor - RoleManager - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    RoleManager
    + +
    + +
    +
    +
    + +
    +
    +

    RoleManager constructor +

    + +
    + + RoleManager(
    1. List<Role> roles
    2. +
    ) +
    + + + + + +
    +

    Implementation

    +
    RoleManager(List<Role> roles) {
    +  for (var role in roles) {
    +    cache.set(role.id, role);
    +  }
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/RoleManager/cache.html b/doc/api/tn_discord/RoleManager/cache.html new file mode 100644 index 0000000..85a8cf3 --- /dev/null +++ b/doc/api/tn_discord/RoleManager/cache.html @@ -0,0 +1,144 @@ + + + + + + + + cache property - RoleManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    cache
    + +
    + +
    +
    +
    + +
    +
    +

    cache property +

    + +
    + + Collection + cache +
    final
    + +
    + + + +
    +

    Implementation

    +
    final Collection cache = Collection();
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User-class.html b/doc/api/tn_discord/User-class.html new file mode 100644 index 0000000..f3c4d38 --- /dev/null +++ b/doc/api/tn_discord/User-class.html @@ -0,0 +1,352 @@ + + + + + + + + User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    User
    + +
    + +
    +
    +
    + +
    +
    +

    User class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + User(Map data) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + avatar + String + +
    +
    + +
    read / write
    + +
    + +
    + bot + bool + +
    +
    + +
    read / write
    + +
    + +
    + discriminator + int + +
    +
    + +
    read / write
    + +
    + +
    + displayName + String + +
    +
    + +
    read / write
    + +
    + +
    + globalName + String + +
    +
    + +
    read / write
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + id + String + +
    +
    + +
    read / write
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    + username + String + +
    +
    + +
    read / write
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/User.html b/doc/api/tn_discord/User/User.html new file mode 100644 index 0000000..bbd4f9b --- /dev/null +++ b/doc/api/tn_discord/User/User.html @@ -0,0 +1,161 @@ + + + + + + + + User constructor - User - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    User
    + +
    + +
    +
    +
    + +
    +
    +

    User constructor +

    + +
    + + User(
    1. Map data
    2. +
    ) +
    + + + + + +
    +

    Implementation

    +
    User(Map data) {
    +  if (data["id"] == null) {
    +    return;
    +  }
    +  id = data["id"];
    +  // bot = data["bot"];
    +  username = data["username"];
    +  // globalName = data["global_name"];
    +  // displayName = data["display_name"];
    +  // discriminator = data["discriminator"];
    +  // avatar = "https://cdn.discordapp.com/avatars/$id/${data["avatar"]}.webp";
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/avatar.html b/doc/api/tn_discord/User/avatar.html new file mode 100644 index 0000000..8b6f74f --- /dev/null +++ b/doc/api/tn_discord/User/avatar.html @@ -0,0 +1,150 @@ + + + + + + + + avatar property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    avatar
    + +
    + +
    +
    +
    + +
    +
    +

    avatar property +

    + +
    + + String + avatar +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String avatar = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/bot.html b/doc/api/tn_discord/User/bot.html new file mode 100644 index 0000000..ad4f2cc --- /dev/null +++ b/doc/api/tn_discord/User/bot.html @@ -0,0 +1,150 @@ + + + + + + + + bot property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    bot
    + +
    + +
    +
    +
    + +
    +
    +

    bot property +

    + +
    + + bool + bot +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    bool bot = false;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/discriminator.html b/doc/api/tn_discord/User/discriminator.html new file mode 100644 index 0000000..bd320d1 --- /dev/null +++ b/doc/api/tn_discord/User/discriminator.html @@ -0,0 +1,150 @@ + + + + + + + + discriminator property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    discriminator
    + +
    + +
    +
    +
    + +
    +
    +

    discriminator property +

    + +
    + + int + discriminator +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    int discriminator = 0;
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/displayName.html b/doc/api/tn_discord/User/displayName.html new file mode 100644 index 0000000..0fbaa62 --- /dev/null +++ b/doc/api/tn_discord/User/displayName.html @@ -0,0 +1,150 @@ + + + + + + + + displayName property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    displayName
    + +
    + +
    +
    +
    + +
    +
    +

    displayName property +

    + +
    + + String + displayName +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String displayName = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/globalName.html b/doc/api/tn_discord/User/globalName.html new file mode 100644 index 0000000..f018c08 --- /dev/null +++ b/doc/api/tn_discord/User/globalName.html @@ -0,0 +1,150 @@ + + + + + + + + globalName property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    globalName
    + +
    + +
    +
    +
    + +
    +
    +

    globalName property +

    + +
    + + String + globalName +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String globalName = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/id.html b/doc/api/tn_discord/User/id.html new file mode 100644 index 0000000..888f60b --- /dev/null +++ b/doc/api/tn_discord/User/id.html @@ -0,0 +1,150 @@ + + + + + + + + id property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    id
    + +
    + +
    +
    +
    + +
    +
    +

    id property +

    + +
    + + String + id +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String id = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/User/username.html b/doc/api/tn_discord/User/username.html new file mode 100644 index 0000000..e90f8de --- /dev/null +++ b/doc/api/tn_discord/User/username.html @@ -0,0 +1,150 @@ + + + + + + + + username property - User class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    username
    + +
    + +
    +
    +
    + +
    +
    +

    username property +

    + +
    + + String + username +
    read / write
    + +
    + + + +
    +

    Implementation

    +
    String username = '';
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/UserManager-class.html b/doc/api/tn_discord/UserManager-class.html new file mode 100644 index 0000000..26c1311 --- /dev/null +++ b/doc/api/tn_discord/UserManager-class.html @@ -0,0 +1,294 @@ + + + + + + + + UserManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    UserManager
    + +
    + +
    +
    +
    + +
    +
    +

    UserManager class + +

    + + + + + + +
    +

    Constructors

    + +
    +
    + UserManager(List<User> users) +
    +
    + +
    +
    +
    + +
    +

    Properties

    + +
    +
    + cache + Collection + +
    +
    + +
    final
    + +
    + +
    + hashCode + int + +
    +
    + The hash code for this object. +
    read-onlyinherited
    + +
    + +
    + runtimeType + Type + +
    +
    + A representation of the runtime type of the object. +
    read-onlyinherited
    + +
    + +
    +
    + + +
    +

    Methods

    +
    +
    + fetch(String id) + Future<User> + + + +
    +
    + + + +
    + +
    + noSuchMethod(Invocation invocation) + → dynamic + + + +
    +
    + Invoked when a nonexistent method or property is accessed. +
    inherited
    + +
    + +
    + toString() + String + + + +
    +
    + A string representation of this object. +
    inherited
    + +
    + +
    +
    + +
    +

    Operators

    +
    +
    + operator ==(Object other) + bool + + + +
    +
    + The equality operator. +
    inherited
    + +
    + +
    +
    + + + + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/UserManager/UserManager.html b/doc/api/tn_discord/UserManager/UserManager.html new file mode 100644 index 0000000..5ebaa39 --- /dev/null +++ b/doc/api/tn_discord/UserManager/UserManager.html @@ -0,0 +1,149 @@ + + + + + + + + UserManager constructor - UserManager - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    UserManager
    + +
    + +
    +
    +
    + +
    +
    +

    UserManager constructor +

    + +
    + + UserManager(
    1. List<User> users
    2. +
    ) +
    + + + + + +
    +

    Implementation

    +
    UserManager(List<User> users) {
    +  for (var user in users) {
    +    cache.set(user.id, user);
    +  }
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/UserManager/cache.html b/doc/api/tn_discord/UserManager/cache.html new file mode 100644 index 0000000..1d2a926 --- /dev/null +++ b/doc/api/tn_discord/UserManager/cache.html @@ -0,0 +1,145 @@ + + + + + + + + cache property - UserManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    cache
    + +
    + +
    +
    +
    + +
    +
    +

    cache property +

    + +
    + + Collection + cache +
    final
    + +
    + + + +
    +

    Implementation

    +
    final Collection cache = Collection();
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/UserManager/fetch.html b/doc/api/tn_discord/UserManager/fetch.html new file mode 100644 index 0000000..45d406c --- /dev/null +++ b/doc/api/tn_discord/UserManager/fetch.html @@ -0,0 +1,157 @@ + + + + + + + + fetch method - UserManager class - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
    + +
    + menu + +
    fetch
    + +
    + +
    +
    +
    + +
    +
    +

    fetch method +

    + +
    + + +Future<User> +fetch(
    1. String id
    2. +
    ) + + + +
    + + + + +
    +

    Implementation

    +
    Future<User> fetch(String id) async {
    +  var res = await http.get(Uri.parse("$apiURL/users/$id"));
    +  if (res.statusCode != 200) {
    +    throw Exception("Error ${res.statusCode} receiving the user");
    +  }
    +  dynamic user = User(json.decode(res.body));
    +  cache.set(user.id, user);
    +  return user;
    +}
    +
    + + +
    + + + + + +
    + +
    + + tn_discord + 1.1.1 + + + +
    + + + + + + + + + + + + diff --git a/doc/api/tn_discord/WebhookClient-class.html b/doc/api/tn_discord/WebhookClient-class.html index 481cc0f..cdc0c83 100644 --- a/doc/api/tn_discord/WebhookClient-class.html +++ b/doc/api/tn_discord/WebhookClient-class.html @@ -79,8 +79,8 @@
    - hashCode - int + hashCode + int
    @@ -91,7 +91,7 @@
    id - String + String
    @@ -101,8 +101,8 @@
    - runtimeType - Type + runtimeType + Type
    @@ -113,7 +113,7 @@
    token - String + String
    @@ -132,8 +132,8 @@

    Methods

    - delete(String id) - Future<Map<String, dynamic>> + delete(String id) + Future<Map<String, dynamic>> @@ -145,8 +145,8 @@
    - edit(String id, {String content = "", List<Embed> embeds = const []}) - Future<Map<String, dynamic>> + edit(String id, {String content = "", List<Embed> embeds = const []}) + Future<Map<String, dynamic>> @@ -158,8 +158,8 @@
    - editText(String id, String content) - Future<Map<String, dynamic>> + editText(String id, String content) + Future<Map<String, dynamic>> @@ -171,8 +171,8 @@
    - get(String id) - Future<Map<String, dynamic>> + get(String id) + Future<Map<String, dynamic>> @@ -184,7 +184,7 @@
    - noSuchMethod(Invocation invocation) + noSuchMethod(Invocation invocation) → dynamic @@ -197,8 +197,8 @@
    - send({String? content, List<Embed>? embeds}) - Future<Map<String, dynamic>> + send({String? content, List<Embed>? embeds}) + Future<Map<String, dynamic>> @@ -210,8 +210,8 @@
    - sendText(String content) - Future<Map<String, dynamic>> + sendText(String content) + Future<Map<String, dynamic>> @@ -223,8 +223,8 @@
    - toString() - String + toString() + String @@ -244,8 +244,8 @@

    Operators

    - operator ==(Object other) - bool + operator ==(Object other) + bool @@ -282,8 +282,21 @@
    tn_discord library
    1. Classes
    2. +
    3. Channel
    4. +
    5. ChannelManager
    6. Client
    7. +
    8. Collection
    9. GatewayIntentBits
    10. +
    11. Guild
    12. +
    13. GuildManager
    14. +
    15. Member
    16. +
    17. MemberManager
    18. +
    19. Message
    20. +
    21. MessageSent
    22. +
    23. Role
    24. +
    25. RoleManager
    26. +
    27. User
    28. +
    29. UserManager
    30. WebhookClient
    31. @@ -293,11 +306,12 @@
    32. apiURL
    33. version
    34. +
    35. Functions
    36. +
    37. calculateIntents
    38. Typedefs
    39. Embed
    40. -
    41. Message
    @@ -313,9 +327,9 @@
  • Properties
  • -
  • hashCode
  • +
  • hashCode
  • id
  • -
  • runtimeType
  • +
  • runtimeType
  • token
  • Methods
  • @@ -323,13 +337,13 @@
  • edit
  • editText
  • get
  • -
  • noSuchMethod
  • +
  • noSuchMethod
  • send
  • sendText
  • -
  • toString
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/WebhookClient/WebhookClient.html b/doc/api/tn_discord/WebhookClient/WebhookClient.html index 572f630..212c902 100644 --- a/doc/api/tn_discord/WebhookClient/WebhookClient.html +++ b/doc/api/tn_discord/WebhookClient/WebhookClient.html @@ -110,9 +110,9 @@
  • Properties
  • -
  • hashCode
  • +
  • hashCode
  • id
  • -
  • runtimeType
  • +
  • runtimeType
  • token
  • Methods
  • @@ -120,13 +120,13 @@
  • edit
  • editText
  • get
  • -
  • noSuchMethod
  • +
  • noSuchMethod
  • send
  • sendText
  • -
  • toString
  • +
  • toString
  • Operators
  • -
  • operator ==
  • +
  • operator ==
  • diff --git a/doc/api/tn_discord/WebhookClient/delete.html b/doc/api/tn_discord/WebhookClient/delete.html index 73f4a71..9ec5271 100644 --- a/doc/api/tn_discord/WebhookClient/delete.html +++ b/doc/api/tn_discord/WebhookClient/delete.html @@ -59,8 +59,8 @@
    -Future<Map<String, dynamic>> -delete(
    1. String id
    2. +Future<Map<String, dynamic>> +delete(
      1. String id
      ) @@ -74,7 +74,6 @@

      Implementation

      Future<Map<String, dynamic>> delete(String id) async {
         Response res = await deleteWH(token, this.id, id);
      -  handleCode(res);
       
         return json.decode(res.body);
       }
      @@ -108,9 +107,9 @@
    3. Properties
    4. -
    5. hashCode
    6. +
    7. hashCode
    8. id
    9. -
    10. runtimeType
    11. +
    12. runtimeType
    13. token
    14. Methods
    15. @@ -118,13 +117,13 @@
    16. edit
    17. editText
    18. get
    19. -
    20. noSuchMethod
    21. +
    22. noSuchMethod
    23. send
    24. sendText
    25. -
    26. toString
    27. +
    28. toString
    29. Operators
    30. -
    31. operator ==
    32. +
    33. operator ==
    34. diff --git a/doc/api/tn_discord/WebhookClient/edit.html b/doc/api/tn_discord/WebhookClient/edit.html index 566be12..eff43b8 100644 --- a/doc/api/tn_discord/WebhookClient/edit.html +++ b/doc/api/tn_discord/WebhookClient/edit.html @@ -59,10 +59,10 @@
      -Future<Map<String, dynamic>> -edit(
      1. String id,
      2. -
      3. {String content = "",
      4. -
      5. List<Embed> embeds = const []}
      6. +Future<Map<String, dynamic>> +edit(
        1. String id,
        2. +
        3. {String content = "",
        4. +
        5. List<Embed> embeds = const []}
        ) @@ -78,7 +78,6 @@ Map body = {"content": content, "embeds": embeds}; Response res = await editWH(body, token, this.id, id); - handleCode(res); return json.decode(res.body); }
      @@ -111,9 +110,9 @@
    35. Properties
    36. -
    37. hashCode
    38. +
    39. hashCode
    40. id
    41. -
    42. runtimeType
    43. +
    44. runtimeType
    45. token
    46. Methods
    47. @@ -121,13 +120,13 @@
    48. edit
    49. editText
    50. get
    51. -
    52. noSuchMethod
    53. +
    54. noSuchMethod
    55. send
    56. sendText
    57. -
    58. toString
    59. +
    60. toString
    61. Operators
    62. -
    63. operator ==
    64. +
    65. operator ==
    66. diff --git a/doc/api/tn_discord/WebhookClient/editText.html b/doc/api/tn_discord/WebhookClient/editText.html index 3694a77..68b77ad 100644 --- a/doc/api/tn_discord/WebhookClient/editText.html +++ b/doc/api/tn_discord/WebhookClient/editText.html @@ -59,9 +59,9 @@
      -Future<Map<String, dynamic>> -editText(
      1. String id,
      2. -
      3. String content
      4. +Future<Map<String, dynamic>> +editText(
        1. String id,
        2. +
        3. String content
        ) @@ -77,7 +77,6 @@ Map<String, String> body = {"content": content}; Response res = await editWH(body, token, this.id, id); - handleCode(res); return json.decode(res.body); }
      @@ -110,9 +109,9 @@
    67. Properties
    68. -
    69. hashCode
    70. +
    71. hashCode
    72. id
    73. -
    74. runtimeType
    75. +
    76. runtimeType
    77. token
    78. Methods
    79. @@ -120,13 +119,13 @@
    80. edit
    81. editText
    82. get
    83. -
    84. noSuchMethod
    85. +
    86. noSuchMethod
    87. send
    88. sendText
    89. -
    90. toString
    91. +
    92. toString
    93. Operators
    94. -
    95. operator ==
    96. +
    97. operator ==
    98. diff --git a/doc/api/tn_discord/WebhookClient/get.html b/doc/api/tn_discord/WebhookClient/get.html index 09cee90..ecb4b4f 100644 --- a/doc/api/tn_discord/WebhookClient/get.html +++ b/doc/api/tn_discord/WebhookClient/get.html @@ -59,8 +59,8 @@
      -Future<Map<String, dynamic>> -get(
      1. String id
      2. +Future<Map<String, dynamic>> +get(
        1. String id
        ) @@ -74,7 +74,6 @@

        Implementation

        Future<Map<String, dynamic>> get(String id) async {
           Response res = await getWH(token, this.id, id);
        -  handleCode(res);
         
           return json.decode(res.body);
         }
        @@ -108,9 +107,9 @@
      3. Properties
      4. -
      5. hashCode
      6. +
      7. hashCode
      8. id
      9. -
      10. runtimeType
      11. +
      12. runtimeType
      13. token
      14. Methods
      15. @@ -118,13 +117,13 @@
      16. edit
      17. editText
      18. get
      19. -
      20. noSuchMethod
      21. +
      22. noSuchMethod
      23. send
      24. sendText
      25. -
      26. toString
      27. +
      28. toString
      29. Operators
      30. -
      31. operator ==
      32. +
      33. operator ==
      34. diff --git a/doc/api/tn_discord/WebhookClient/id.html b/doc/api/tn_discord/WebhookClient/id.html index da58dd8..8b00af2 100644 --- a/doc/api/tn_discord/WebhookClient/id.html +++ b/doc/api/tn_discord/WebhookClient/id.html @@ -58,7 +58,7 @@
        - String + String id
        read / write
        @@ -99,9 +99,9 @@
      35. Properties
      36. -
      37. hashCode
      38. +
      39. hashCode
      40. id
      41. -
      42. runtimeType
      43. +
      44. runtimeType
      45. token
      46. Methods
      47. @@ -109,13 +109,13 @@
      48. edit
      49. editText
      50. get
      51. -
      52. noSuchMethod
      53. +
      54. noSuchMethod
      55. send
      56. sendText
      57. -
      58. toString
      59. +
      60. toString
      61. Operators
      62. -
      63. operator ==
      64. +
      65. operator ==
      66. diff --git a/doc/api/tn_discord/WebhookClient/send.html b/doc/api/tn_discord/WebhookClient/send.html index dac9767..0251818 100644 --- a/doc/api/tn_discord/WebhookClient/send.html +++ b/doc/api/tn_discord/WebhookClient/send.html @@ -59,9 +59,9 @@
        -Future<Map<String, dynamic>> -send(
        1. {String? content,
        2. -
        3. List<Embed>? embeds}
        4. +Future<Map<String, dynamic>> +send(
          1. {String? content,
          2. +
          3. List<Embed>? embeds}
          ) @@ -74,11 +74,11 @@

          Implementation

          Future<Map<String, dynamic>> send({String? content, List<Embed>? embeds}) async {
          -  Map<String, dynamic> body = Utils().createMessage(text: content, embeds: embeds);
          +  Map<String, dynamic> body =
          +      Utils().createMessage(text: content, embeds: embeds);
           
             Response res = await sendWH(body, token, id);
           
          -  handleCode(res);
             return json.decode(res.body);
           }
          @@ -111,9 +111,9 @@
        5. Properties
        6. -
        7. hashCode
        8. +
        9. hashCode
        10. id
        11. -
        12. runtimeType
        13. +
        14. runtimeType
        15. token
        16. Methods
        17. @@ -121,13 +121,13 @@
        18. edit
        19. editText
        20. get
        21. -
        22. noSuchMethod
        23. +
        24. noSuchMethod
        25. send
        26. sendText
        27. -
        28. toString
        29. +
        30. toString
        31. Operators
        32. -
        33. operator ==
        34. +
        35. operator ==
        36. diff --git a/doc/api/tn_discord/WebhookClient/sendText.html b/doc/api/tn_discord/WebhookClient/sendText.html index 2eef5ce..acd67fb 100644 --- a/doc/api/tn_discord/WebhookClient/sendText.html +++ b/doc/api/tn_discord/WebhookClient/sendText.html @@ -59,8 +59,8 @@
          -Future<Map<String, dynamic>> -sendText(
          1. String content
          2. +Future<Map<String, dynamic>> +sendText(
            1. String content
            ) @@ -76,7 +76,6 @@ Map<String, String> body = {"content": content}; Response res = await sendWH(body, token, id); - handleCode(res); return json.decode(res.body); }
          @@ -109,9 +108,9 @@
        37. Properties
        38. -
        39. hashCode
        40. +
        41. hashCode
        42. id
        43. -
        44. runtimeType
        45. +
        46. runtimeType
        47. token
        48. Methods
        49. @@ -119,13 +118,13 @@
        50. edit
        51. editText
        52. get
        53. -
        54. noSuchMethod
        55. +
        56. noSuchMethod
        57. send
        58. sendText
        59. -
        60. toString
        61. +
        62. toString
        63. Operators
        64. -
        65. operator ==
        66. +
        67. operator ==
        68. diff --git a/doc/api/tn_discord/WebhookClient/token.html b/doc/api/tn_discord/WebhookClient/token.html index 899018f..744a67f 100644 --- a/doc/api/tn_discord/WebhookClient/token.html +++ b/doc/api/tn_discord/WebhookClient/token.html @@ -58,7 +58,7 @@
          - String + String token
          read / write
          @@ -99,9 +99,9 @@
        69. Properties
        70. -
        71. hashCode
        72. +
        73. hashCode
        74. id
        75. -
        76. runtimeType
        77. +
        78. runtimeType
        79. token
        80. Methods
        81. @@ -109,13 +109,13 @@
        82. edit
        83. editText
        84. get
        85. -
        86. noSuchMethod
        87. +
        88. noSuchMethod
        89. send
        90. sendText
        91. -
        92. toString
        93. +
        94. toString
        95. Operators
        96. -
        97. operator ==
        98. +
        99. operator ==
        100. diff --git a/doc/api/tn_discord/apiURL.html b/doc/api/tn_discord/apiURL.html index ea73125..447d841 100644 --- a/doc/api/tn_discord/apiURL.html +++ b/doc/api/tn_discord/apiURL.html @@ -58,7 +58,7 @@
          - String + String apiURL
          final
          @@ -92,8 +92,21 @@
          tn_discord library
          1. Classes
          2. +
          3. Channel
          4. +
          5. ChannelManager
          6. Client
          7. +
          8. Collection
          9. GatewayIntentBits
          10. +
          11. Guild
          12. +
          13. GuildManager
          14. +
          15. Member
          16. +
          17. MemberManager
          18. +
          19. Message
          20. +
          21. MessageSent
          22. +
          23. Role
          24. +
          25. RoleManager
          26. +
          27. User
          28. +
          29. UserManager
          30. WebhookClient
          31. @@ -103,11 +116,12 @@
          32. apiURL
          33. version
          34. +
          35. Functions
          36. +
          37. calculateIntents
          38. Typedefs
          39. Embed
          40. -
          41. Message
          diff --git a/doc/api/tn_discord/calculateIntents.html b/doc/api/tn_discord/calculateIntents.html new file mode 100644 index 0000000..327f779 --- /dev/null +++ b/doc/api/tn_discord/calculateIntents.html @@ -0,0 +1,170 @@ + + + + + + + + calculateIntents function - tn_discord library - Dart API + + + + + + + + + + + + + + + + + +
          + +
          + menu + +
          calculateIntents
          + +
          + +
          +
          +
          + +
          +
          +

          calculateIntents function + +

          + +
          + + +int +calculateIntents(
          1. List<int> intents
          2. +
          ) + + + +
          + +
          +

          This function calculate the intent number required from the gateway. +intents is a list of multiples of two. You can use GatewayIntentBits class. +Return a number.

          +
          + + + +
          +

          Implementation

          +
          int calculateIntents(List<int> intents) {
          +  int intentsNumber = 0;
          +
          +  for (var element in intents) {
          +    intentsNumber += element;
          +  }
          +
          +  return intentsNumber;
          +}
          +
          + + +
          + + + + + +
          + +
          + + tn_discord + 1.1.1 + + + +
          + + + + + + + + + + + + diff --git a/doc/api/tn_discord/tn_discord-library.html b/doc/api/tn_discord/tn_discord-library.html index 5163c4c..e6c97d7 100644 --- a/doc/api/tn_discord/tn_discord-library.html +++ b/doc/api/tn_discord/tn_discord-library.html @@ -57,27 +57,128 @@ -
          -

          Support for doing something awesome.

          -

          More dartdocs go here.

          -

          Classes

          -
          - Client +
          + Channel
          +
          + +
          + ChannelManager + +
          +
          + +
          + +
          + Client + +
          +
          + The main hub for interacting with the Discord API, and the starting point for any bot. +
          + +
          + Collection + +
          +
          + A collection of variables. Like NodeJS' Map and discordjs' Collections +This will be moved to a separate package in the future.
          GatewayIntentBits +
          +
          + A list of all Gateway Intents Bits. +
          + +
          + Guild + +
          +
          + Represents a guild (aka server) on Discord. +
          + +
          + GuildManager + +
          +
          + +
          + +
          + Member + +
          +
          + +
          + +
          + MemberManager + +
          +
          + +
          + +
          + Message + +
          +
          + Represents a message on Discord. +
          + +
          + MessageSent + +
          +
          + Represents a sent message on Discord. +
          + +
          + Role + +
          +
          + +
          + +
          + RoleManager + +
          +
          + +
          + +
          + User + +
          +
          + +
          + +
          + UserManager +
          @@ -103,7 +204,7 @@
          apiURL - String + String
          @@ -114,7 +215,7 @@
          version - String + String
          @@ -126,6 +227,27 @@
          +
          +

          Functions

          + +
          +
          + calculateIntents(List<int> intents) + int + + + +
          +
          + This function calculate the intent number required from the gateway. +intents is a list of multiples of two. You can use GatewayIntentBits class. +Return a number. + + +
          + +
          +
          @@ -135,22 +257,7 @@
          Embed - = Map<String, String> - - - -
          -
          - - - -
          - - - -
          - Message - = Map<String, String> + = Map<String, String> @@ -193,8 +300,21 @@
          tn_discord library
          1. Classes
          2. +
          3. Channel
          4. +
          5. ChannelManager
          6. Client
          7. +
          8. Collection
          9. GatewayIntentBits
          10. +
          11. Guild
          12. +
          13. GuildManager
          14. +
          15. Member
          16. +
          17. MemberManager
          18. +
          19. Message
          20. +
          21. MessageSent
          22. +
          23. Role
          24. +
          25. RoleManager
          26. +
          27. User
          28. +
          29. UserManager
          30. WebhookClient
          31. @@ -204,11 +324,12 @@
          32. apiURL
          33. version
          34. +
          35. Functions
          36. +
          37. calculateIntents
          38. Typedefs
          39. Embed
          40. -
          41. Message
          diff --git a/doc/api/tn_discord/version.html b/doc/api/tn_discord/version.html index 438dd0f..c092939 100644 --- a/doc/api/tn_discord/version.html +++ b/doc/api/tn_discord/version.html @@ -58,7 +58,7 @@
          - String + String version
          final
          @@ -92,8 +92,21 @@
          tn_discord library
          1. Classes
          2. +
          3. Channel
          4. +
          5. ChannelManager
          6. Client
          7. +
          8. Collection
          9. GatewayIntentBits
          10. +
          11. Guild
          12. +
          13. GuildManager
          14. +
          15. Member
          16. +
          17. MemberManager
          18. +
          19. Message
          20. +
          21. MessageSent
          22. +
          23. Role
          24. +
          25. RoleManager
          26. +
          27. User
          28. +
          29. UserManager
          30. WebhookClient
          31. @@ -103,11 +116,12 @@
          32. apiURL
          33. version
          34. +
          35. Functions
          36. +
          37. calculateIntents
          38. Typedefs
          39. Embed
          40. -
          41. Message
          diff --git a/lib/src/classes/channel/channel.dart b/lib/src/classes/channel/channel.dart new file mode 100644 index 0000000..b401ba4 --- /dev/null +++ b/lib/src/classes/channel/channel.dart @@ -0,0 +1,19 @@ +import '../../requests.dart'; +import '../message/message.dart'; +import '../message/message_sent.dart'; + +class Channel { + String id = ''; + String name = ''; + final Sender _sender; + + Channel(this._sender, data) { + id = data["id"]; + name = data["name"]; + } + + Future send(Message message) async { + await _sender.send(message, id); + return MessageSent(message, id: id); + } +} \ No newline at end of file diff --git a/lib/src/classes/channel/channel_manager.dart b/lib/src/classes/channel/channel_manager.dart new file mode 100644 index 0000000..b8b60b6 --- /dev/null +++ b/lib/src/classes/channel/channel_manager.dart @@ -0,0 +1,21 @@ +import '../../collection.dart'; +import '../../requests.dart'; +import './channel.dart'; + +class ChannelManager { + final Collection cache = Collection(); + final Sender _sender; + + ChannelManager(this._sender, List channels) { + for (var channel in channels) { + cache.set(channel.id, channel); + } + } + + Future fetch(String id) async { + var res = await _sender.fetchChannel(id); + dynamic channel = Channel(_sender, res); + cache.set(channel.id, channel); + return channel; + } +} \ No newline at end of file diff --git a/lib/src/classes/gateway_intents_bits.dart b/lib/src/classes/gateway_intents_bits.dart new file mode 100644 index 0000000..044623f --- /dev/null +++ b/lib/src/classes/gateway_intents_bits.dart @@ -0,0 +1,24 @@ +// ignore_for_file: constant_identifier_names + +/// A list of all Gateway Intents Bits. +class GatewayIntentBits { + static const Guilds = 1; + static const GuildMembers = 2; + static const GuildModeration = 4; + static const GuildEmojisAndStickers = 8; + static const GuildIntegrations = 16; + static const GuildWebhooks = 32; + static const GuildInvites = 64; + static const GuildVoiceStates = 128; + static const GuildPresences = 256; + static const GuildMessages = 512; + static const GuildMessageReactions = 1024; + static const GuildMessageTyping = 2048; + static const DirectMessages = 4096; + static const DirectMessageReactions = 8192; + static const DirectMessageTyping = 16384; + static const MessageContent = 32768; + static const GuildScheduledEvents = 65536; + static const AutoModerationConfiguration = 1048576; + static const AutoModerationExecution = 2097152; +} \ No newline at end of file diff --git a/lib/src/classes/guild/guild.dart b/lib/src/classes/guild/guild.dart new file mode 100644 index 0000000..4ac826a --- /dev/null +++ b/lib/src/classes/guild/guild.dart @@ -0,0 +1,91 @@ +import '../../requests.dart'; +import '../channel/channel.dart'; +import '../channel/channel_manager.dart'; +import '../member/member.dart'; +import '../member/member_manager.dart'; +import '../role/role.dart'; +import '../role/role_manager.dart'; + +/// Represents a guild (aka server) on Discord. +class Guild { + final Sender _sender; + + ChannelManager? channels; + MemberManager? members; + RoleManager? roles; + + // Param guild create | fetch | fetch-servers + late String id; // x | x | x + late bool unavailable;// x | x | + String? name; // x | x | x + String? icon; // x | x | x + String? iconHash; // x | x | + String? splash; // x | x | + String? discoverySplash;// x | x | + bool? appIsOwner; // | | x + Future? owner;// | | + String? ownerId; // x | x | + String? permissions; // | | x + String? description; + String? joinedAt; + bool? large; + int? memberCount; + + Guild(this._sender, Map data) { + id = data["id"]; + + // Without discord outages + if (data["unavailable"] != null && !data["unavailable"]) { + if(data["channels"] != null && data["members"] != null && data["roles"] != null) { + List cc = []; + for (var c in data["channels"]) { + cc.add(Channel(_sender, c)); + } + channels = ChannelManager(_sender, cc); + + List mm = []; + for (var m in data["members"]) { + mm.add(Member(m)); + } + members = MemberManager(_sender, mm, id); + + List rr = []; + for (var r in data["roles"]) { + rr.add(Role(r)); + } + roles = RoleManager(rr); + } else { + channels = ChannelManager(_sender, []); + members = MemberManager(_sender, [], id); + roles = RoleManager([]); + } + + unavailable = data["unavailable"]; + name = data["name"]; + icon = data["icon"]; + iconHash = data["icon_hash"]; + splash = data["splash"]; + if (data["discovery_splash"] != null) { + discoverySplash = data["discovery_splash"]; + } else { + discoverySplash = null; + } + appIsOwner = data["owner"]; + ownerId = data["owner_id"]; + owner = members?.fetch(ownerId.toString()); + permissions = data["permissions"]; + description = data["description"]; + if (data["joined_at"] != null) { + joinedAt = data["joined_at"]; + } + if (data["large"] != null) { + large = data["large"]; + } + if (data["member_count"] != null) { + memberCount = data["member_count"]; + } + } else if (data["unavailable"] != null) { + unavailable = data["unavailable"]; + } + } +} \ No newline at end of file diff --git a/lib/src/classes/guild/guild_manager.dart b/lib/src/classes/guild/guild_manager.dart new file mode 100644 index 0000000..91f941d --- /dev/null +++ b/lib/src/classes/guild/guild_manager.dart @@ -0,0 +1,27 @@ +import "../../collection.dart"; +import "../../requests.dart"; +import './guild.dart'; + +class GuildManager { + final cache = Collection(); + final Sender _sender; + + GuildManager(this._sender, List guilds) { + for (var guild in guilds) { + cache.set(guild.id, guild); + } + } + + Future fetch(String id) async { + var res = await _sender.fetchGuild(id); + final guild = Guild(_sender, res); + final oldGuild = cache.get(guild.id); + guild.joinedAt = oldGuild.joinedAt; + guild.large = oldGuild.large; + guild.unavailable = oldGuild.unavailable; + guild.memberCount = oldGuild.memberCount; + guild.owner = oldGuild.owner; + cache.set(guild.id, guild); + return guild; + } +} \ No newline at end of file diff --git a/lib/src/classes/member/member.dart b/lib/src/classes/member/member.dart new file mode 100644 index 0000000..9f63267 --- /dev/null +++ b/lib/src/classes/member/member.dart @@ -0,0 +1,11 @@ +import '../user/user.dart'; + +class Member { + String id = ''; + User user = User({}); + + Member(Map data) { + id = data["user"]["id"]; + user = User(data["user"]); + } +} \ No newline at end of file diff --git a/lib/src/classes/member/member_manager.dart b/lib/src/classes/member/member_manager.dart new file mode 100644 index 0000000..2c07a64 --- /dev/null +++ b/lib/src/classes/member/member_manager.dart @@ -0,0 +1,21 @@ +import '../../collection.dart'; +import 'member.dart'; +import "../../requests.dart"; + +class MemberManager { + final Collection cache = Collection(); + String id; + final Sender _sender; + + MemberManager(this._sender, List members, this.id) { + for (var member in members) { + cache.set(member.id, member); + } + } + + Future fetch(String id) async { + var res = await _sender.fetchMember(this.id, id); + cache.set(id, Member(res)); + return Member(res); + } +} \ No newline at end of file diff --git a/lib/src/classes/message/embed.dart b/lib/src/classes/message/embed.dart new file mode 100644 index 0000000..516f986 --- /dev/null +++ b/lib/src/classes/message/embed.dart @@ -0,0 +1 @@ +typedef Embed = Map; \ No newline at end of file diff --git a/lib/src/classes/message/message.dart b/lib/src/classes/message/message.dart new file mode 100644 index 0000000..bdf56e4 --- /dev/null +++ b/lib/src/classes/message/message.dart @@ -0,0 +1,12 @@ +/// Represents a message on Discord. +class Message { + String? content; + Message({ this.content }); + + /// Returns an object rapresentation of the message + exportable() { + return { + "content": content, + }; + } +} \ No newline at end of file diff --git a/lib/src/classes/message/message_sent.dart b/lib/src/classes/message/message_sent.dart new file mode 100644 index 0000000..a200b4f --- /dev/null +++ b/lib/src/classes/message/message_sent.dart @@ -0,0 +1,9 @@ +import 'message.dart'; + +/// Represents a sent message on Discord. +class MessageSent extends Message { + String id = ''; + MessageSent(Message msg, { required this.id }) { + content = msg.content; + } +} diff --git a/lib/src/classes/role/role.dart b/lib/src/classes/role/role.dart new file mode 100644 index 0000000..17e8afa --- /dev/null +++ b/lib/src/classes/role/role.dart @@ -0,0 +1,9 @@ +class Role { + String id = ''; + String name = ''; + + Role(Map data) { + id = data["id"]; + name = data["name"]; + } +} diff --git a/lib/src/classes/role/role_manager.dart b/lib/src/classes/role/role_manager.dart new file mode 100644 index 0000000..bd77ebc --- /dev/null +++ b/lib/src/classes/role/role_manager.dart @@ -0,0 +1,12 @@ +import '../../collection.dart'; +import './role.dart'; + +class RoleManager { + final Collection cache = Collection(); + + RoleManager(List roles) { + for (var role in roles) { + cache.set(role.id, role); + } + } +} \ No newline at end of file diff --git a/lib/src/classes/user/user.dart b/lib/src/classes/user/user.dart new file mode 100644 index 0000000..78d6fd6 --- /dev/null +++ b/lib/src/classes/user/user.dart @@ -0,0 +1,22 @@ +class User { + String id = ''; + bool bot = false; + String username = ''; + String globalName = ''; + String displayName = ''; + int discriminator = 0; + String avatar = ''; + + User(Map data) { + if (data["id"] == null) { + return; + } + id = data["id"]; + // bot = data["bot"]; + username = data["username"]; + // globalName = data["global_name"]; + // displayName = data["display_name"]; + // discriminator = data["discriminator"]; + // avatar = "https://cdn.discordapp.com/avatars/$id/${data["avatar"]}.webp"; + } +} \ No newline at end of file diff --git a/lib/src/classes/user/user_manager.dart b/lib/src/classes/user/user_manager.dart new file mode 100644 index 0000000..cb7ee37 --- /dev/null +++ b/lib/src/classes/user/user_manager.dart @@ -0,0 +1,27 @@ +import 'dart:convert'; + +import "package:http/http.dart" as http; + +import '../../../tn_discord.dart'; +import '../../collection.dart'; +import './user.dart'; + +class UserManager { + final Collection cache = Collection(); + + UserManager(List users) { + for (var user in users) { + cache.set(user.id, user); + } + } + + Future fetch(String id) async { + var res = await http.get(Uri.parse("$apiURL/users/$id")); + if (res.statusCode != 200) { + throw Exception("Error ${res.statusCode} receiving the user"); + } + dynamic user = User(json.decode(res.body)); + cache.set(user.id, user); + return user; + } +} \ No newline at end of file diff --git a/lib/src/collection.dart b/lib/src/collection.dart new file mode 100644 index 0000000..1b2ca08 --- /dev/null +++ b/lib/src/collection.dart @@ -0,0 +1,62 @@ +/// A collection of variables. Like NodeJS' Map and discordjs' Collections +/// This will be moved to a separate package in the future. +class Collection { + final Map _variables = {}; + /// Create a new Collection + Collection(); + + /// Adds a new element with key [key] and value [value] to the Map. If an element with the same key already exists, the element will be updated. + dynamic set(String key, dynamic value) { + _variables[key] = value; + return value; + } + + /// Returns [key] from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. + dynamic get(String key) { + if (_variables[key] == null) { + throw Exception("Variable not found for $key"); + } + return _variables[key]; + } + + /// Removes [key] from the Map object. + void remove(String key) { + _variables.remove(key); + } + + /// Alias of [remove] + void delete(String key) { + remove(key); + } + + /// Sum to the value of [key] to [value]. + dynamic add(String key, num value) { + _variables[key] += value; + return value + _variables[key]; + } + + /// Subtract [value] from the value of [key]. + dynamic subtract(String key, num value) { + _variables[key] -= value; + return _variables[key] - value; + } + + /// Returns all the variables as a Map. + Map getAll() { + return _variables; + } + + /// Returns all the variables' keys as a List. + List keys() { + return _variables.keys.toList(); + } + + /// Returns all the variables' values as a List. + List values() { + return _variables.values.toList(); + } + + bool has(String key) { + return _variables.containsKey(key); + } +} \ No newline at end of file diff --git a/lib/src/main.dart b/lib/src/main.dart index 6ef9a63..780009d 100644 --- a/lib/src/main.dart +++ b/lib/src/main.dart @@ -3,7 +3,8 @@ import "dart:io"; import "dart:convert"; import "package:events_emitter/events_emitter.dart"; -import "types.dart"; +import "classes/guild/guild.dart"; +import "classes/guild/guild_manager.dart"; import "requests.dart"; final version = "10"; @@ -120,7 +121,16 @@ class Client extends EventEmitter { sessionID = event["d"]["session_id"]; break; case "GUILD_CREATE": - guilds.cache.set(event["d"]["id"], Guild(sender, event["d"])); + if (guilds.cache.has(event["d"]["id"])) { + Guild oldGuild = guilds.cache.get(event["d"]["id"]); + if (oldGuild.appIsOwner != null) { + event['d']["owner"] = oldGuild.appIsOwner; + } + if (oldGuild.permissions != null) { + event['d']["permissions"] = oldGuild.permissions; + } + } + guilds.cache.set(event['d']["id"], Guild(sender, event['d'])); if (n > 1) { n--; } else { diff --git a/lib/src/requests.dart b/lib/src/requests.dart index 7a84e3b..a6356a0 100644 --- a/lib/src/requests.dart +++ b/lib/src/requests.dart @@ -1,5 +1,5 @@ +import 'classes/message/message.dart'; import 'main.dart'; -import 'types.dart'; import 'package:http/http.dart' as http; import 'dart:convert'; @@ -76,4 +76,13 @@ class Sender { res = json.decode(res.body); return res; } + + Future fetchMember(String gid, String id) async { + dynamic res = await http.get(Uri.parse("$apiURL/guilds/$gid/members/$id"), headers: headers); + if (res.statusCode != 200) { + throw Exception("Error ${res.statusCode} receiving the member"); + } + res = json.decode(res.body); + return res; + } } \ No newline at end of file diff --git a/lib/src/types.dart b/lib/src/types.dart deleted file mode 100644 index 3b39a63..0000000 --- a/lib/src/types.dart +++ /dev/null @@ -1,323 +0,0 @@ -// ignore_for_file: constant_identifier_names -import "dart:convert"; -import "package:http/http.dart" as http; -import "main.dart"; -import "requests.dart"; - -/// A list of all Gateway Intents Bits. -class GatewayIntentBits { - static const Guilds = 1; - static const GuildMembers = 2; - static const GuildModeration = 4; - static const GuildEmojisAndStickers = 8; - static const GuildIntegrations = 16; - static const GuildWebhooks = 32; - static const GuildInvites = 64; - static const GuildVoiceStates = 128; - static const GuildPresences = 256; - static const GuildMessages = 512; - static const GuildMessageReactions = 1024; - static const GuildMessageTyping = 2048; - static const DirectMessages = 4096; - static const DirectMessageReactions = 8192; - static const DirectMessageTyping = 16384; - static const MessageContent = 32768; - static const GuildScheduledEvents = 65536; - static const AutoModerationConfiguration = 1048576; - static const AutoModerationExecution = 2097152; -} - -/// A collection of variables. Like NodeJS' Map and discordjs' Collections -/// This will be moved to a separate package in the future. -class Collection { - final Map _variables = {}; - /// Create a new Collection - Collection(); - - /// Adds a new element with key [key] and value [value] to the Map. If an element with the same key already exists, the element will be updated. - dynamic set(String key, dynamic value) { - _variables[key] = value; - return value; - } - - /// Returns [key] from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map. - dynamic get(String key) { - if (_variables[key] == null) { - throw Exception("Variable not found for $key"); - } - return _variables[key]; - } - - /// Removes [key] from the Map object. - void remove(String key) { - _variables.remove(key); - } - - /// Alias of [remove] - void delete(String key) { - remove(key); - } - - /// Sum to the value of [key] to [value]. - dynamic add(String key, num value) { - _variables[key] += value; - return value + _variables[key]; - } - - /// Subtract [value] from the value of [key]. - dynamic subtract(String key, num value) { - _variables[key] -= value; - return _variables[key] - value; - } - - /// Returns all the variables as a Map. - Map getAll() { - return _variables; - } - - /// Returns all the variables' keys as a List. - List keys() { - return _variables.keys.toList(); - } - - /// Returns all the variables' values as a List. - List values() { - return _variables.values.toList(); - } -} - -/// Represents a guild (aka server) on Discord. -class Guild { - final Sender _sender; - ChannelManager? channels; - MemberManager? members; - RoleManager? roles; - String id = ''; - String? name = ''; - String? ownerId; - String? description; - String? joinedAt; - bool? large; - bool? unavailable; - int? memberCount; - - Guild(this._sender, Map data) { - id = data["id"]; - if (data["unavailable"] != null && data["unavailable"] == false) { - unavailable = data["unavailable"]; - name = data["name"]; - description = data["description"]; - ownerId = data["owner_id"]; - if (data["joined_at"] != null) { - joinedAt = data["joined_at"]; - } - if (data["large"] != null) { - large = data["large"]; - } - if (data["member_count"] != null) { - memberCount = data["member_count"]; - } - - if(data["channels"] != null && data["members"] != null && data["roles"] != null) { - List cc = []; - for (var c in data["channels"]) { - cc.add(Channel(_sender, c)); - } - channels = ChannelManager(_sender, cc); - - List mm = []; - for (var m in data["members"]) { - mm.add(Member(m)); - } - members = MemberManager(mm, id); - - List rr = []; - for (var r in data["roles"]) { - rr.add(Role(r)); - } - roles = RoleManager(rr); - } else { - channels = ChannelManager(_sender, []); - members = MemberManager([], id); - roles = RoleManager([]); - } - } else { - unavailable = data["unavailable"]; - } - } -} - -class GuildManager { - final Collection cache = Collection(); - final Sender _sender; - - GuildManager(this._sender, List guilds) { - for (var guild in guilds) { - cache.set(guild.id, guild); - } - } - - Future fetch(String id) async { - var res = await _sender.fetchGuild(id); - final guild = Guild(_sender, res); - final oldGuild = cache.get(guild.id); - guild.joinedAt = oldGuild.joinedAt; - guild.large = oldGuild.large; - guild.unavailable = oldGuild.unavailable; - guild.memberCount = oldGuild.memberCount; - cache.set(guild.id, guild); - return guild; - } -} - -class Channel { - String id = ''; - String name = ''; - final Sender _sender; - - Channel(this._sender, data) { - id = data["id"]; - name = data["name"]; - } - - Future send(Message message) async { - await _sender.send(message, id); - return MessageSent(message, id: id); - } -} - -class ChannelManager { - final Collection cache = Collection(); - final Sender _sender; - - ChannelManager(this._sender, List channels) { - for (var channel in channels) { - cache.set(channel.id, channel); - } - } - - Future fetch(String id) async { - var res = await _sender.fetchChannel(id); - dynamic channel = Channel(_sender, res); - cache.set(channel.id, channel); - return channel; - } -} - -class Member { - String id = ''; - User user = User({}); - - Member(Map data) { - id = data["user"]["id"]; - user = User(data["user"]); - } -} - -class MemberManager { - final Collection cache = Collection(); - String id; - - MemberManager(List members, this.id) { - for (var member in members) { - cache.set(member.id, member); - } - } - - fetch(String id) async { - dynamic res = await http.get(Uri.parse("$apiURL/guilds/${this.id}/members/$id")); - if (res.statusCode != 200) { - throw Exception("Error ${res.statusCode} receiving the member"); - } - - res = json.decode(res.body); - cache.set(id, res); - return res; - } -} - -class Role { - String id = ''; - String name = ''; - - Role(Map data) { - id = data["id"]; - name = data["name"]; - } -} - -class RoleManager { - final Collection cache = Collection(); - - RoleManager(List roles) { - for (var role in roles) { - cache.set(role.id, role); - } - } -} - -class User { - String id = ''; - bool bot = false; - String username = ''; - String globalName = ''; - String displayName = ''; - int discriminator = 0; - String avatar = ''; - - User(Map data) { - if (data["id"] == null) { - return; - } - id = data["id"]; - // bot = data["bot"]; - username = data["username"]; - // globalName = data["global_name"]; - // displayName = data["display_name"]; - // discriminator = data["discriminator"]; - // avatar = "https://cdn.discordapp.com/avatars/$id/${data["avatar"]}.webp"; - } -} - -class UserManager { - final Collection cache = Collection(); - - UserManager(List users) { - for (var user in users) { - cache.set(user.id, user); - } - } - - Future fetch(String id) async { - var res = await http.get(Uri.parse("$apiURL/users/$id")); - if (res.statusCode != 200) { - throw Exception("Error ${res.statusCode} receiving the user"); - } - dynamic user = User(json.decode(res.body)); - cache.set(user.id, user); - return user; - } -} - -typedef Embed = Map; - -/// Represents a message on Discord. -class Message { - String? content; - Message({ this.content }); - - /// Returns an object rapresentation of the message - exportable() { - return { - "content": content, - }; - } -} - -/// Represents a sent message on Discord. -class MessageSent extends Message { - String id = ''; - MessageSent(Message msg, { required this.id }) { - content = msg.content; - } -} diff --git a/lib/src/util.dart b/lib/src/util.dart index 23f3ad4..542ba7d 100644 --- a/lib/src/util.dart +++ b/lib/src/util.dart @@ -1,4 +1,4 @@ -import 'types.dart'; +import 'classes/message/embed.dart'; class Utils { static Map parseWebhookURL(String url) { diff --git a/lib/src/webhook.dart b/lib/src/webhook.dart index 1494904..d0e5ad5 100644 --- a/lib/src/webhook.dart +++ b/lib/src/webhook.dart @@ -1,8 +1,8 @@ import "dart:convert"; import "package:http/http.dart"; +import "classes/message/embed.dart"; import 'requests.dart'; -import "types.dart"; import "util.dart"; class WebhookClient { diff --git a/lib/tn_discord.dart b/lib/tn_discord.dart index da3922d..827f62a 100644 --- a/lib/tn_discord.dart +++ b/lib/tn_discord.dart @@ -2,4 +2,4 @@ library; export "src/webhook.dart"; export "src/main.dart"; -export "src/types.dart"; \ No newline at end of file +export "src/classes/gateway_intents_bits.dart";