public static bool TryGetGuild(this OrikivoCommandContext ctx, ulong u, out SocketGuild g) { g = ctx.Client.GetGuild(u); if (!g.Exists()) { return(false); } return(true); }
public static bool TryGetGuild(this OrikivoCommandContext ctx, string s, out SocketGuild g) { g = null; if (!s.Exists()) { return(false); } g = ctx.Client.GetGuild(s); if (!g.Exists()) { return(false); } return(true); }