constant

package
v0.16.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DiscordVersion = 6

DiscordVersion API version

View Source
const DisgordTestBot = "DISGORD_TEST_BOT"

DisgordTestBot bot token for a disgord testing bot

View Source
const DisgordTestGuildAdmin = "DISGORD_TEST_GUILD_ADMIN"

DisgordTestGuildAdmin A guild snowflake id where the bot has administrator permission

View Source
const DisgordTestGuildDefault = "DISGORD_TEST_GUILD_DEFAULT"

DisgordTestGuildDefault Guild snowflake id where the default discord permission assigned when joining a vanilla guild

View Source
const DisgordTestGuildDefaultEmojiSnowflake = "DISGORD_TEST_GUILD_DEFAULT_EMOJI_SNOWFLAKE"

DisgordTestGuildDefaultEmojiSnowflake the default guild should have one custom emoji which can be retrieved during testing // eg: 486891339078696971

View Source
const DisgordTestLive = "DISGORD_TEST_LIVE"

DisgordTestLive set to true to properly test the functionality against Discord before a release is drafted

View Source
const GitHubURL = "https://github.com/andersfylling/disgord"

GitHubURL repository url

View Source
const JSONEncoding = "json"

JSONEncoding the json encoding identifier

View Source
const LockedMethods = false

LockedMethods signifies if the methods of discord objects should handle locking. I don't enjoy introducing this, but at the same time, I don't want to completely remove a easy way to activate locking for people that require parallel handling of objects.

Yes. They could set mutexes themselves, but if they want performance, they want to only lock when they actually deal read and write to the objects, not while doing casting, error checks, and other time consuming operations which often takes place in internal methods before actually interaction with the "unsafe" content.

TODO: reconsider - This option affects the behaviour in a breaking way.

View Source
const Name = "Disgord"
View Source
const UserAgent = "DiscordBot (" + GitHubURL + ", " + Version + ") " // "DiscordBot (%s, %s) %s"
View Source
const Version = "v0.16.5"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL