C#C
C#2y ago
Wagi

✅ GetGlobalApplicationCommandsAsync exception

The code in question
c#
IReadOnlyCollection<SocketApplicationCommand> commands = await this.m_Discord.GetClient().GetGlobalApplicationCommandsAsync();
foreach (SocketApplicationCommand command in commands)
{
    await command.DeleteAsync();
}

See picture for the error.

What am I doing wrong ?
image.png
Was this page helpful?