Exemplo n.º 1
0
        public static bool TryGetGuild(this OrikivoCommandContext ctx, ulong u, out SocketGuild g)
        {
            g = ctx.Client.GetGuild(u);
            if (!g.Exists())
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        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);
        }