public override Task <PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider map)
        {
            var service = map.GetService <RemindMeService>();

            if (service != null)
            {
                //if (CheckAllowCommands(service, context))
                //{

                //TODO: Check if channel is set and do action(?)
                return(SqliteDbHandler.GetCommandChannelId(context.Guild) == context.Channel.Id
                    ? Task.FromResult(PreconditionResult.FromSuccess())
                    : Task.FromResult(PreconditionResult.FromError("This command can only be used in command channel.")));
                //}
                //return Task.FromResult(PreconditionResult.FromError("Managing music via commands is disabled in this guild."));
            }

            return(Task.FromResult(PreconditionResult.FromError("No RemindMeService found.")));
        }
        internal IMessageChannel GetCommandChannel(IGuild guild)
        {
            SocketTextChannel channel = guild.GetChannelAsync(SqliteDbHandler.GetCommandChannelId(guild)).GetAwaiter().GetResult() as SocketTextChannel;

            return(channel != null?channel:guild.GetDefaultChannelAsync().GetAwaiter().GetResult());
        }