Nihlus / digos-ambassador

Homegrown Discord bot for the DIGOS community.
GNU Affero General Public License v3.0
8 stars 7 forks source link

Bug #49

Closed UndeadNightFury closed 5 years ago

UndeadNightFury commented 5 years ago

Please attach the generated report to this issue!

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Run command '....'
  3. With parameters '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. Automatic bug report

Generated at: 07/09/2019 20:19:14 Bot version: 2.0.0.0 Command message link: https://discordapp.com/channels/556204320887013385/557507609444483123/619990075064844318 Ran by: Undead Night Fury#0238 (303913182211211265) In: Night Fury Death Knights (556204320887013385) Full command: !help

Stack Trace

Discord.Net.HttpException: The server responded with error 50013: Missing Permissions 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, String bucketId, ClientBucketType clientBucket, RequestOptions options) at Discord.API.DiscordRestApiClient.CreateMessageAsync(UInt64 channelId, CreateMessageParams args, RequestOptions options) at Discord.Rest.ChannelHelper.SendMessageAsync(IMessageChannel channel, BaseDiscordClient client, String text, Boolean isTTS, Embed embed, RequestOptions options) at Discord.WebSocket.SocketTextChannel.Discord.IMessageChannel.SendMessageAsync(String text, Boolean isTTS, Embed embed, RequestOptions options) at DIGOS.Ambassador.Discord.Feedback.UserFeedbackService.SendEmbedAsync(IMessageChannel channel, Embed eb) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Feedback/UserFeedbackService.cs:line 178 at DIGOS.Ambassador.Discord.Feedback.UserFeedbackService.SendEmbedAsync(ICommandContext context, Color color, String contents) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Feedback/UserFeedbackService.cs:line 217 at DIGOS.Ambassador.Discord.Feedback.UserFeedbackService.SendConfirmationAsync(ICommandContext context, String contents) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Feedback/UserFeedbackService.cs:line 134 at DIGOS.Ambassador.Discord.Interactivity.InteractivityServiceExtensions.SendPrivateInteractiveMessageAndDeleteAsync(InteractivityService this, ICommandContext context, UserFeedbackService feedback, InteractiveMessage message, Nullable1 timeout) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Interactivity/InteractivityServiceExtensions.cs:line 114 at DIGOS.Ambassador.Discord.Interactivity.InteractivityServiceExtensions.SendPrivateInteractiveMessageAndDeleteAsync(InteractivityService this, ICommandContext context, UserFeedbackService feedback, InteractiveMessage message, Nullable1 timeout) in /opt/digos/src/Discord/DIGOS.Ambassador.Discord.Interactivity/InteractivityServiceExtensions.cs:line 130 at DIGOS.Ambassador.Modules.HelpCommands.HelpAsync() in /opt/digos/src/digos-ambassador/Modules/HelpCommands.cs:line 86 at Discord.Commands.ModuleClassBuilder.<>c__DisplayClass6_0.<g__ExecuteCallback|0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services) at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services) at Discord.Commands.CommandInfo.ExecuteInternalAsync(ICommandContext context, Object[] args, IServiceProvider services) at Discord.Commands.CommandInfo.ExecuteAsync(ICommandContext context, IEnumerable1 argList, IEnumerable1 paramList, IServiceProvider services)

Nihlus commented 5 years ago

This looks like the bot doesn't have permissions to send messages. Can you verify that?

UndeadNightFury commented 5 years ago

2019-09-10 (1)

Nihlus commented 5 years ago

In general, the bot needs the following permissions. You should create a role for the bot, and assign it the following permissions.

Required:

Optional

UndeadNightFury commented 5 years ago

ive already given it the bots role and i just double checked too make sure it gives all the listed perms and it dose yet the problem still happens

Nihlus commented 5 years ago

I can't reproduce it, unfortunately. It is defintively something with your permission setup - is it just this one channel, or the whole server?

UndeadNightFury commented 5 years ago

ok i figured it out by checking the bot on my mods channel and it worked thx!

Nihlus commented 5 years ago

Ah, good to hear!