Releases: Color-Chan/Color-Chan.Discord
Releases · Color-Chan/Color-Chan.Discord
v1.3.5 - Hotfix
- Fix: Unable to use nullable parameters for slash commands
v1.3.4 - Initial official release
This is the first official release of Color-Chan.Discord
since most bug have been washed out and the library will be used in the Beta version of Color-Chan soon!
- Fix: Not setting embeds private.
- Added
DeleteOriginalInteractionResponseAsync
. - Added mention extension methods.
v1.3.4-beta - Breaking bugs
- Fix: Channel id missing when the slash command was used in DMs.
- Fix: possible Null Reference Exceptions for
DiscordSelectOption
- Fix: always checking for channel perm overwrites when no channel perms are required.
- Added:
HasChannelPermissions
extension method. - Added missing channel types.
- Added missing properties for interactions.
v1.3.3-beta - Breaking bug
- Fix: Not passing down correct arguments for sub commands and sub command groups.
- Fix: Not using correct option type for
roles
anduser
options. - Added
VerifyInteractions
config option.
v1.3.2-beta - Bug fixes
- Fix:
MethodName
onISlashCommandContext
was not nullable. - Added
SlashCommandName
toISlashCommandContext
.
v1.3.1-beta - Pipelines
- Added
ISlashCommandPipeline
. - Added
ToReadableString
forDiscordPermission
. - Added better default configs.
- Added different error results for all requirements.
- Fix: always resolving restChannel for
SlashCommandRequireBotPermission
. - Fix: Missing guild permission for bot user on
SlashCommandRequireBotPermission
. - Fix: Renamed DiscordGuildPermissions to DiscordPermission.
v1.3.1-alpha - Bug fixes
- Fix: 500 error when no verification headers are provided.
- Fix: not adding all Color-Chan.Discord.Commands dependencies.
- Fix: Failing to send error message when inner exception is null.
- Added
SlashCommandRequireChannel
v1.3.0-alpha - Better command returns
- Added the possibility to add no expiration for cache objects.
- Added better configuration classes.
- Added
guild & channel
to slash command context. - Added overload for
CacheValue
&CacheValueAsync
withabsoluteExpiration
. - Changed command returns to
Result<IDiscordInteractionResponse>
. - Fix: rate limits expiration not working when the user keeps spamming requests.
v1.2.0-beta - Command rate limits, cache and much more
- Added
Color-Chan.Discord.Cache
. You can choose between a Redis cache and a local cache! - Added slash command rate limits! Simply add the
SlashCommandRateLimit(maxRequests, timeInSeconds)
attribute above a command to add rate limiting to a command. - Added
CreateInteractionResponse
. - Added
GetOriginalInteractionResponse
. - Added
AcknowledgeInteractions
to configs to support commands that run for longer then 3 seconds. - Added
GetOriginalInteractionResponse
. - Added
interaction token
andID
toSlashCommandContext
. - Added the
SlashRequireDirectMessages
attribute to require a command to be used in DMs. - Added the
SlashRequireGuild
attribute to require a command to be used in a guild. - Added the
SlashRequireUserPermission
attribute to require a user to have certain permissions to use the command. - Added the
SlashCommandRequireBotPermission
attribute to require the bot to have certain permissions to use the command. - Fix: not handling http rate limit error properly.
- Fix: Incorrect property name on
DiscordMessageData
.
v1.1.0-beta - Command perm overwrites
- Added
defaultPermission
to command and command groups. - Added
SlashCommandPermissionAttribute
to give a user or a role access to a command or command group. - Added
auto sync
for command perm overwrites. - Added application command permission rest API calls.
- Added new
JSON error codes
. - Fix: Updated commands now get
edited
instead ofoverwritten
.