Skip to content

Commit

Permalink
Update dsp (dsp had another bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plerx2493 committed May 7, 2024
1 parent cbf81dc commit b2d9dfa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task<IEnumerable<DiscordAutoCompleteChoice>> Provider(AutocompleteC

foreach (VoiceAlert choice in choices)
{
DiscordChannel chn = ctx.Guild.GetChannel(choice.ChannelId);
DiscordChannel chn = await ctx.Guild.GetChannelAsync(choice.ChannelId);
result.Add(new DiscordAutoCompleteChoice(chn.Name, choice.ChannelId.ToString()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ private static async Task DeleteOneUserOnly(ComponentInteractionCreateEventArgs

private static async Task MoveVoiceChannelUser
(
ComponentInteractionCreateEventArgs e,
IReadOnlyList<string> substring
ComponentInteractionCreateEventArgs e,
IReadOnlyList<string> substring
)
{
await e.Interaction.CreateResponseAsync(DiscordInteractionResponseType.DeferredMessageUpdate);
Expand All @@ -226,8 +226,8 @@ IReadOnlyList<string> substring
return;
}

DiscordChannel originChannel = e.Guild.GetChannel(ulong.Parse(substring[1]));
DiscordChannel targetChannel = e.Guild.GetChannel(ulong.Parse(substring[2]));
DiscordChannel originChannel = await e.Guild.GetChannelAsync(ulong.Parse(substring[1]));
DiscordChannel targetChannel = await e.Guild.GetChannelAsync(ulong.Parse(substring[2]));

foreach (DiscordMember voiceMember in originChannel.Users)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

<ItemGroup>
<PackageReference Include="DeepL.net" Version="1.9.0" />
<PackageReference Include="DSharpPlus" Version="5.0.0-nightly-02237" />
<PackageReference Include="DSharpPlus.CommandsNext" Version="5.0.0-nightly-02237" />
<PackageReference Include="DSharpPlus.Interactivity" Version="5.0.0-nightly-02237" />
<PackageReference Include="DSharpPlus.Rest" Version="5.0.0-nightly-02237" />
<PackageReference Include="DSharpPlus.SlashCommands" Version="5.0.0-nightly-02237" />
<PackageReference Include="DSharpPlus" Version="5.0.0-nightly-02240" />
<PackageReference Include="DSharpPlus.CommandsNext" Version="5.0.0-nightly-02240" />
<PackageReference Include="DSharpPlus.Interactivity" Version="5.0.0-nightly-02240" />
<PackageReference Include="DSharpPlus.Rest" Version="5.0.0-nightly-02240" />
<PackageReference Include="DSharpPlus.SlashCommands" Version="5.0.0-nightly-02240" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" Version="8.0.0" />
<PackageReference Include="Humanizer" Version="3.0.0-beta.13" />
Expand Down

0 comments on commit b2d9dfa

Please sign in to comment.