When using the interaction service with context commands, they are registered and appear on the client, but using them will do nothing. This only happens when their name have spaces (" ").
I mentioned this bug to @Cenngo a few days ago, but I guess this wasn't fixed.
Example commands:
[UserCommand("Get Avatar")]
public async Task GetAvatar(IUser user)
{
string url = "";
if (user is RestGuildUser guildUser)
url = guildUser.GetGuildAvatarUrl();
url ??= user.GetAvatarUrl() ?? user.GetDefaultAvatarUrl();
await RespondAsync(url);
}
[MessageCommand("Get Text")]
public async Task GetText(IMessage message)
{
await RespondAsync(message.Content);
}
When using the interaction service with context commands, they are registered and appear on the client, but using them will do nothing. This only happens when their name have spaces (" ").
I mentioned this bug to @Cenngo a few days ago, but I guess this wasn't fixed.
Example commands: