Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Nov 3, 2024
1 parent fb734a7 commit 58e9273
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libs/DSharpPlus
Submodule DSharpPlus updated 24 files
+1 −0 DSharpPlus.Commands/Converters/DiscordRoleConverter.cs
+2 −2 DSharpPlus.Commands/ProcessorInvokingHandlers.cs
+1 −1 DSharpPlus.Commands/Processors/MessageCommands/MessageCommandProcessor.cs
+11 −0 ...pPlus.Commands/Processors/SlashCommands/RemoteRecordRetentionPolicies/DefaultRemoteRecordRetentionPolicy.cs
+16 −0 DSharpPlus.Commands/Processors/SlashCommands/RemoteRecordRetentionPolicies/IRemoteRecordRetentionPolicy.cs
+22 −0 DSharpPlus.Commands/Processors/SlashCommands/SlashCommandConfiguration.cs
+130 −0 DSharpPlus.Commands/Processors/SlashCommands/SlashCommandProcessor.Registration.Remote.cs
+45 −19 DSharpPlus.Commands/Processors/SlashCommands/SlashCommandProcessor.Registration.cs
+2 −0 DSharpPlus.Commands/Processors/SlashCommands/SlashLogging.cs
+13 −3 DSharpPlus.Commands/Processors/TextCommands/TextCommandProcessor.cs
+1 −1 DSharpPlus.Commands/Processors/UserCommands/UserCommandProcessor.cs
+15 −3 DSharpPlus/Clients/DefaultEventDispatcher.cs
+2 −1 DSharpPlus/Clients/DiscordClient.Dispatch.cs
+37 −2 DSharpPlus/Clients/DiscordClient.cs
+7 −4 DSharpPlus/Clients/EventHandlerCollection.cs
+20 −1 DSharpPlus/Clients/EventHandlingBuilder.cs
+1 −5 DSharpPlus/Entities/Channel/DiscordChannel.cs
+30 −14 DSharpPlus/Entities/Channel/Overwrite/DiscordOverwriteBuilder.cs
+15 −3 DSharpPlus/Entities/Guild/DiscordMember.cs
+300 −0 DSharpPlus/Entities/Interaction/Application/DiscordApplicationCommand.WeakEquals.cs
+1 −1 DSharpPlus/Entities/Interaction/Application/DiscordApplicationCommand.cs
+2 −2 DSharpPlus/Entities/Interaction/Application/DiscordApplicationCommandType.cs
+20 −0 DSharpPlus/Net/Models/ApplicationCommandEditModel.cs
+6 −2 DSharpPlus/Net/Rest/DiscordApiClient.cs
10 changes: 2 additions & 8 deletions src/Commands/Moderation/CopyCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@ await webhook.ExecuteAsync(new DiscordWebhookBuilder()
private async Task IdleAsync(CommandContext context, DiscordChannel channel, CancellationToken cancellationToken = default)
{
// Lock the channel to prevent other messages from being sent
List<DiscordOverwriteBuilder> overwrites = [];
foreach (DiscordOverwrite overwrite in channel.PermissionOverwrites)
{
overwrites.Add(await DiscordOverwriteBuilder.FromAsync(overwrite));
}

List<DiscordOverwriteBuilder> overwrites = [.. channel.PermissionOverwrites.Select(DiscordOverwriteBuilder.From)];
List<DiscordOverwriteBuilder> newOverwrites = [];
foreach (DiscordOverwriteBuilder overwrite in overwrites)
{
Expand All @@ -156,9 +151,8 @@ private async Task IdleAsync(CommandContext context, DiscordChannel channel, Can
}

// Add an overwrite that'll allow the bot to send messages
newOverwrites.Add(new DiscordOverwriteBuilder()
newOverwrites.Add(new DiscordOverwriteBuilder(channel.Guild.CurrentMember)
{
Target = channel.Guild.CurrentMember,
Allowed = channel.IsThread ? DiscordPermissions.SendMessagesInThreads : DiscordPermissions.SendMessages
});

Expand Down
4 changes: 2 additions & 2 deletions src/Events/Handlers/GuildMemberUpdatedEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ private static async ValueTask LogMemberUpdateAsync(GuildMemberUpdatedEventArgs
args["{user_before_display_name}"] = eventArgs.MemberBefore.GetDisplayName();
args["{user_before_global_name}"] = eventArgs.MemberBefore.GlobalName!;
args["{user_before_name}"] = eventArgs.MemberBefore.Username + (eventArgs.MemberBefore.Discriminator == "0" ? "" : $"#{eventArgs.MemberBefore.Discriminator}");
args["{user_before_guild_avatar_url}"] = eventArgs.MemberBefore.GuildAvatarUrl;
args["{user_before_guild_avatar_url}"] = eventArgs.MemberBefore.DisplayAvatarUrl;
args["{user_before_avatar_url}"] = eventArgs.MemberBefore.AvatarUrl;
args["{user_before_role_count}"] = eventArgs.MemberBefore.Roles.Count().ToString("N0", CultureInfo.InvariantCulture);
args["{user_before_role_list}"] = string.Join(", ", eventArgs.MemberBefore.Roles.Select(x => x.Mention));

args["{user_guild_avatar_url}"] = eventArgs.MemberAfter.GuildAvatarUrl;
args["{user_guild_avatar_url}"] = eventArgs.MemberAfter.DisplayAvatarUrl;
args["{user_avatar_url}"] = eventArgs.MemberAfter.AvatarUrl;
args["{user_role_count}"] = eventArgs.MemberAfter.Roles.Count().ToString("N0", CultureInfo.InvariantCulture);
args["{user_role_list}"] = string.Join(", ", eventArgs.MemberAfter.Roles.Select(x => x.Mention));
Expand Down

0 comments on commit 58e9273

Please sign in to comment.