#Discord.Net.HttpException The server responded with error 50001 Missing Access

1 messages · Page 1 of 1 (latest)

half hearth
#

Pleas eping me with help if you can help me

sturdy hamlet
#

You need bot and application.commands scope ticked when inviting the bot

half hearth
#

After fiddiling around with the permissions it still gives me error 50001. This is the intents string: private readonly DiscordSocketConfig sc = new() { GatewayIntents = GatewayIntents.AllUnprivileged | GatewayIntents.GuildMembers, AlwaysDownloadUsers = true, };
This is the logs: 07:19:09 Discord Discord.Net v3.8.1 (API v10) 07:19:09 Gateway Connecting 07:19:10 Gateway Connected 07:19:20 Gateway A Ready handler has thrown an unhandled exception.: Discord.Net.HttpException: The server responded with error 50001: Missing Access at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request) at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request) at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request) at Discord.API.DiscordRestApiClient.SendJsonAsync[TResponse](String method, String endpoint, Object payload, BucketId bucketId, ClientBucketType clientBucket, RequestOptions options) at Discord.API.DiscordRestApiClient.BulkOverwriteGuildApplicationCommandsAsync(UInt64 guildId, CreateApplicationCommandParams[] commands, RequestOptions options) at Discord.Rest.InteractionHelper.BulkOverwriteGuildCommandsAsync(BaseDiscordClient client, UInt64 guildId, ApplicationCommandProperties[] args, RequestOptions options) at Discord.Rest.ClientHelper.BulkOverwriteGuildApplicationCommandAsync(BaseDiscordClient client, UInt64 guildId, ApplicationCommandProperties[] properties, RequestOptions options) at Discord.Interactions.InteractionService.RegisterCommandsToGuildAsync(UInt64 guildId, Boolean deleteMissing) at YEX.InteractionHandler.ReadyAsync() in C:\Users\Awire\source\repos\YEX\YEX\Handler.cs:line 47 at Discord.EventExtensions.InvokeAsync(AsyncEvent`1 eventHandler) at Discord.WebSocket.DiscordSocketClient.TimeoutWrap(String name, Func`1 action) 07:19:20 Gateway Ready

untold zodiac
#

did you enable GuildMembers intent in dev portal?

half hearth
#

Yes

untold zodiac
#

oh

at Discord.Interactions.InteractionService.RegisterCommandsToGuildAsync(UInt64 guildId, Boolean deleteMissing)
#

make sure the guild id is correct