Example #1
0
        public async Task <Embed> TrackPlayer(string name)
        {
            await File.AppendAllTextAsync(PlayersPath, name + "\n");

            return(await EmbedHandler.CreateBasicEmbed("Data", $"{name} will now have their stats tracked.", Color.Blue));
        }
Example #2
0
        public async Task <Embed> NewRule([Remainder] string rule)
        {
            await File.AppendAllTextAsync(RulesPath, "\n" + rule);

            return(await EmbedHandler.CreateBasicEmbed("Data", $"{rule} has been added to the rules file", Color.Blue));
        }
Example #3
0
 private async Task SendEnqueuedEmbed(LavaTrack track) => await ReplyAsync(EmbedHandler.CreateBasicEmbed(ModuleName, $"{Hyperlink(track)} has been added to queue by {GetRequestor(track)}.", Color.Blue));