Chris Johnston
db21ec2489
Implement replacement for appveyor-retry
7 years ago
Chris Johnston
7d75f43242
Use forward slash for paths so that it works on both windows and linux
7 years ago
Chris Johnston
3b15821878
Skip using appveyor-retry (for now)
7 years ago
Chris Johnston
0f116866df
Minor syntax change
7 years ago
Chris Johnston
3a4053b1a4
Minor syntax change
7 years ago
Chris Johnston
a4ec254567
Check if appveyor provides appveyor-retry by trying to run it
7 years ago
Chris Johnston
73a615204a
Set clone folder to use appveyor defaults
7 years ago
Chris Johnston
008ddb35b2
Target Ubuntu in Appveyor CI build
AppVeyor has released support for targetting Ubuntu 18.04 environments.
This adds Ubuntu to the list of build images for Appveyor to use.
7 years ago
Christopher F
232f525b59
lint: refactor SlowMode -> SlowModeInterval
this was the name change i always wanted
7 years ago
Christopher F
97d17cfdda
api: add slow mode
This adds the following property to ITextChannel
- SlowMode (int)
The SlowMode field defines the time in seconds users must wait between
sending messages; if zero, slow-mode is disabled.
Bots are not affected by slow-mode, and as such, no changes need to be
made to the REST client's internal ratelimiting. This is strictly a
read/write cosmetic property for bots.
7 years ago
Chris Johnston
9e9a11d4b0
Fix swapped parameters in ArgumentException, ArgumentNullException cstrs ( #1139 )
* Fix swapped parameters in ArgumentException and ArgumentNullException cstrs
The constructors of ArgumentException and ArgumentNullException are inconsistent with each other, which results in their parameters being swapped here and there.
* Use named parameters for ArgumentException constructors
Cleans up some of the methods of EmbedBuilder to use simpler syntax as well
7 years ago
Alex Gravely
272604f275
Make voice connection properties optional. ( #1129 )
7 years ago
Still Hsu
82cfdffc65
Add various optimizations and cleanups ( #1114 )
* Change all Select(... as ...) to OfType
* Add changes according to 194a8aa427
7 years ago
Joe4evr
a2d8800115
Add == support on Color ( #1126 )
7 years ago
Chris Johnston
2de6cef18c
Add validation to bot tokens based on string length ( #1128 )
* Add input validation for bot tokens based on their length
* Add token validation to BaseDiscordClient#LoginAsync
Adds a TokenUtils class which is used to validate that tokens are correct
* Revert changes to DiscordRestApiClient
* Add Unit tests to the TokenUtils class, fix a logic error that was caught by those tests
* Allow for API to throw exceptions
Moves the validation of tokens to be inside of LoginInternalAsync, and writes a Warning to the console when the supplied tokens are invalid
7 years ago
Finite Reality
efdb4f9266
Pass our json serializer to ToObject calls ( #1133 )
Should fix issues in audit logs when deserializing overwrites and
similar types which we use a custom contract resolver for.
7 years ago
JustNrik
143fb2808b
Update CommandAttribute.cs
7 years ago
JustNrik
c56fff9fe5
Update CommandAttribute.cs
7 years ago
JustNrik
4259b8cb0c
Update CommandAttribute.cs
Nullable<T> is not valid for Attributes, this is my suggested fix.
7 years ago
Still Hsu
db90eab953
Update README.md ( #1117 )
* Initial commit
* Add alternative suggestion
* Fix typo
* Update README.md
7 years ago
Joe4evr
748e92bcda
Allow `FromError(Exception)` on all IResult types.
7 years ago
Joe4evr
2c3e9193c2
Implement ISnowflakeEntity for Audit Log entries
7 years ago
Christopher F
c1d78189e1
core: add PrioritySpeaker to Permissions
7 years ago
Joe4evr
5dad0fa1a1
Minor fixes around OnModuleBuilding ( #1116 )
* Don't attempt instantiation of an abstract module
* Attempt associating a TypeReader in case one is registered late (ie. OnModuleBuilding)
7 years ago
Casino Boyale
afc3a9d063
Added GetJumpUrl() as an extension method for IMessage ( #1102 )
* Added GetJumpUrl() as an IMessage extension method
* Removed extra line for consistency
* Moved the namespace from Discord.Commands to Discord
* lint: remove eof newline
* lint: use TextChannel to get GuildID
7 years ago
Finite Reality
aadd6f639f
Add missing fields to new MemberInfo type ( #1107 )
7 years ago
Still Hsu
245806fe3d
Initial refactor ( #1103 )
7 years ago
Still Hsu
b2f0043952
Fix typo in audit log interface declaration ( #1104 )
7 years ago
Christopher F
beb3d46e08
gateway: Ignore PRESENCES_REPLACE dispatch
This dispatch is undocumented and only used by user accounts.
7 years ago
Still Hsu
ffe994a9df
Mark guild optional in invite & general invite improvement ( #1094 )
* Mark guild as optional for invite
* Mark partial InviteMetadata members as Optional<T>
* Some of them aren't sent when requesting through the general GET invite endpoint
* Remove GetInviteParams
* It was kinda stupid in the first place, might as well always get the count instead of having to ask the user whether they want the two fields filled or not.
* Add ChannelType property
* Add vanity invite support
7 years ago
HelpfulStranger999
4bc06a0a54
Patch lazy default readers not getting replaced ( #1083 )
7 years ago
ComputerMaster1st
322d46e47b
Solved 4003 Authentication Error (Race Condition) ( #1093 )
* Solved 4003 Authentication Error (Race Condition)
* Set static interval & removed hello case
7 years ago
Builderb
aff4512fcd
Update Discord.Net.Core.csproj ( #1081 )
7 years ago
HelpfulStranger999
033d31294f
Creates full guild user object, resolves #1047 ( #1078 )
7 years ago
HelpfulStranger999
93878e4a90
Refactors an unused parameter in CommandService#Search ( #1025 )
7 years ago
NovusTheory
48fed064d4
Add missing VoiceServerUpdated event ( #1089 )
7 years ago
NovusTheory
890904f32c
Allow external VoiceChannel client API implementation ( #1057 )
* ConnectAsync(bool external) API implemented
This allows developers to handle the AudioClient externally (for example with Lavalink)
* Modify ConnectAsync API and add DisconnectAsync to IAudioChannel
* Update summary message on IAudioChannel.DisconnectAsync()
* Review changes:
- Fix `if (!external)` styling
- Remove unecessary ConnectAsync overload
* SocketVoiceChannel overload update
* Update IAudioChannel.ConnectAsync()
- Remove ConfigAction from parameters
- Add SelfDeafen/SelfMute to parameters
* Remove SocketVoiceChannel.ConnectAsync() default params (Inherit)
7 years ago
HelpfulStranger999
3acf2a9a6b
Refactors readMessages, fixing from #1033 ( #1075 )
7 years ago
Christopher F
513a489bf8
codefix: add VoiceAPIVersion constant to DiscordConfig
7 years ago
Christopher F
9ba38d7796
api: upgrade audio client to VoiceWS v3
7 years ago
Christopher F
64d8938ed5
fix: Discord does not always send the member on VOICE_STATE_UPDATE
some guilds aren't on g250k yet? not sure
7 years ago
FiniteReality
aeb3095593
Remove Debug.Print call causing tests to fail
Forgot to hit save properly... Whoops.
7 years ago
Christopher F
a718a7d3c2
cleanup: Remove ChannelHelper#IsNsfw
Closes #1074
This code was not referenced anywhere in the active codebase.
7 years ago
FiniteReality
0c7cb73b06
Fix permission-related ViewChannel tests
7 years ago
FiniteReality
415e2f7739
Fix analyzer warnings with tests
Use (actual, expected) format for Assert.Equal, fixes analyzer warnings
7 years ago
FiniteReality
b0042606b6
Move RpcCategoryChannel into the correct project
7 years ago
FiniteReality
683b3f2701
Mark ChannelHelper.IsNsfw Obsolete
Discord no longer treats channels prefixed with 'nsfw' as NSFW,
so we no longer need to have this check.
7 years ago
Christopher F
237ad0f867
Revert "fix: Properly rethrow exceptions in SocketGuild audio client"
This reverts commit adf4da19fc .
Someone hasn't written c# in a while
7 years ago
Christopher F
adf4da19fc
fix: Properly rethrow exceptions in SocketGuild audio client
7 years ago
Christopher F
c0c565fd7e
retain fallback case for if user is still null
7 years ago