Discord-Net-Labs / Discord.Net-Labs

An experimental fork of Discord.Net that implements the newest discord features for testing and development to eventually get merged into Discord.Net
https://labs.discordnet.dev
MIT License
156 stars 42 forks source link

Slash Command Timeout error #286

Closed GPLNature closed 2 years ago

GPLNature commented 2 years ago

Why do i have to answer the slash command in 3 seconds? i can't debugging or develop some slash commands with response limit in 3 seconds.

test code:

private static Task ClientOnSlashCommandExecuted(SocketSlashCommand arg) {
  Console.WriteLine((DateTime.UtcNow - arg.CreatedAt).TotalSeconds);
  arg.DeferAsync();
  return Task.CompletedTask;
}

result: 4.8949309

quinchs commented 2 years ago

Seems like your local clock is out of sync, I'll add a way to not use the local clock soon