Exemplo n.º 1
0
        public async Task Recover([Remainder, Name("Smeu")] string input)
        {
            using (var typing = Context.Channel.EnterTypingState())
            {
                input = input.ToLower();

                // remove it from the database
                if (await smeuService.RemoveAsync(input, Context.User.Id))
                {
                    await ReplyAsync($"{input} is hersteld!");
                }
                else
                {
                    await ReplyAsync($"Ik kon geen inzending van jouw vinden voor {input}");
                }
            }
        }
Exemplo n.º 2
0
        public async Task Recover([Remainder, Name("Smeu")] string input)
        {
            using (var typing = Context.Channel.EnterTypingState())
            {
                input = input.ToLower();

                // remove it from the database
                if (await smeuService.RemoveAsync(input, Context.User.Id).ConfigureAwait(false))
                {
                    // if remove was successful, reply with success
                    await ReplyAsync($"{input} is hersteld!").ConfigureAwait(false);
                }
                else
                {
                    // if remove was unsuccessful, reply with failure
                    await ReplyAsync($"Ik kon geen inzending van jouw vinden voor {input}").ConfigureAwait(false);
                }
            }
        }