I am trying to built discord slash command using guide from official discord.net documentation site. I`ve copied a code from this article but in
await client.CreateGlobalApplicationCommandAsync(globalCommand.Build());
i get NullReferenceException, can anybody tell me what i do wrong?
p.s. i`ve remove code related with guild commands