public async Task ProcessPingMe(CommandContext ctx) { if (!ctx.Channel.IsPrivate) { await PingMe.Process(ctx.Member); } else { DiscordMember member = await Config.Guild.GetMemberAsync(ctx.User.Id); if (member != null) { await PingMe.Process(member); } } }
public static async Task OnServerAvailable(GuildCreateEventArgs e) { if (e.Guild.Id == Config.GuildId) { await Config.LoadEntities(); await Program.discord.UpdateStatusAsync(Config.ClientGame); await View.SendMain(GameMessages.ShowHello()); await View.Wipe(); await View.DisableMod(); await PingMe.Load(); } }