Esempio n. 1
0
        public async Task Query(Context ctx, PKSystem system)
        {
            if (system == null)
            {
                throw Errors.NoSystemError;
            }

            await ctx.Reply(embed : await _embeds.CreateSystemEmbed(system));
        }
Esempio n. 2
0
        public async Task Query(PKSystem system = null)
        {
            if (system == null)
            {
                system = Context.SenderSystem;
            }
            if (system == null)
            {
                throw Errors.NoSystemError;
            }

            await Context.Channel.SendMessageAsync(embed : await EmbedService.CreateSystemEmbed(system));
        }