Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from Discord .Net Labs 3.4.8 #1958

Merged
merged 574 commits into from
Dec 6, 2021
Merged

Conversation

quinchs
Copy link
Member

@quinchs quinchs commented Dec 5, 2021

Summary

This PR updates the dev branch to labs version 3.4.8.

Sending multiple files with Interactions
You can now send multiple files with interactions as followups! follows the same standard as sending multiple files in messages.

Interaction Service
@Cenngo's interaction service is added in this PR.

.NET 5.0 and .NET 6.0
All the projects have been updated to build with net5.0 and net6.0.

Changes

  • Fixed NRE with presence.
  • Fix NRE on modifying messages allowed mentions.
  • Add check for creating threads in news channels.
  • Add IApplicationCommandInteraction interface and make IUserCommandInteraction, IMessageCommandInteraction, and ISlashCommandInteraction inherit it.
  • Change Followup / Respond method signatures to move RequestOptions to the last parameter as well as change component to components.
  • Add FollowupWithFilesAsync to interactions to allow uploading multiple attachments.
  • Made RespondAsync return a RestInteractionMessage based off of the parameters sent over to discord. This allows direct calls to ModifyAsync and DeleteAsync without having to get the interaction response first.
  • Deprecate ApplicationCommandException in favor for HttpException.
  • Add IUser User to IDiscordInteraction.
  • Update async summaries to contain information about the task in the return tag.

PRs

killerfrienddk and others added 30 commits September 24, 2021 06:10
* meta: bump version

* meta: bump vers

* Fix sticker args

* Grammer fix (discord-net#179)

* Added embeds for SendMessageAsync

* [JsonProperty("embed")] forgot to remove this

 public Optional<Embed> Embed { get; set; }

* It has been done as requested.

* Changed the old way of handeling single embeds

* Moved embeds param and added options param

* xmls

Co-authored-by: quin lynch <lynchquin@gmail.com>
* Update GuildPermissionsTests.cs

* Update GuildPermissions.cs
* Used compound assignment

* -||-

* -||-
* Fixed some warnings

* Another fixed warning

* Changed the SSendFileAsync to SendFileAsync

* Removed para AlwaysAcknowledgeInteractions

* Moved it back to the previous version

* Added periods to the end like quin requested!! :((

Co-authored-by: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com>
* Use 'switch' expression

* Reverted it to the old switch case
* Submitting updates to include new permissions.

* Make old permissions obsolete and update tests

Co-authored-by: quin lynch <lynchquin@gmail.com>
* Add support for sending files with multiple embeds

* Simplify prepending single embed to embed array
* Changed the way of handling prepending of embeds.

For consistency.

* reformatted the summary
* Added some requirements to channels for topic

* Changed check from NotNullOrEmpty to NotNullOrEmpty

* Added some requirements to channels for name

Preconditions.LessThan

* Formatting of file
The style was not properly added to it and the plastic version does not look good with the discord badge.
I thought it would look better with a logo
quinchs and others added 24 commits November 28, 2021 16:40
Co-Authored-By: Nova Fox <novamaday@gmail.com>
Changed _guildScheduledEventCancelled to _guildScheduledEventCreated in GUILD_SCHEDULED_EVENT_CREATE
* Refactor Interactions

* Remove ApplicationCommandException
* fix module preconditions

* fix module preconditions
This comit makes `Content` optional for webhook execution. This comit also adds null checks to content when creating the api args to properly specify the optional struct to the model. This is done so the message entity doesn't try to parse a null string.
@quinchs quinchs added priority: improvement V3 Todo Something that needs to be done for V3 labels Dec 5, 2021
@quinchs quinchs merged commit aa6bb5e into discord-net:dev Dec 6, 2021
@quinchs quinchs deleted the merger-dnet-labs branch December 13, 2021 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: improvement V3 Todo Something that needs to be done for V3
Projects
None yet
Development

Successfully merging this pull request may close these issues.