Esempio n. 1
0
        public async Task EventRequest(string Date, string time, [Remainder] string eventInfo)
        {
            if (!RoleCheck.HasClerkRole((SocketGuildUser)Context.User) || !RoleCheck.HasTownMemberRole((SocketGuildUser)Context.User))
            {
                await Context.Channel.SendMessageAsync("**ERROR 404** You lack the role to use this command.");

                return;
            }
            var embed = new EmbedBuilder();

            embed.WithTitle("Event Request")
            .AddField("Who:", Context.User.Mention)
            .AddField("For:", eventInfo)
            .AddField("Date:", eventInfo)
            .AddField("Time:", time);
            await Context.Channel.SendMessageAsync("", false, embed.Build());
        }
Esempio n. 2
0
        public async Task RequestMeeting(string topic, string when, string length)
        {
            if (!RoleCheck.HasClerkRole((SocketGuildUser)Context.User) || !RoleCheck.HasTownMemberRole((SocketGuildUser)Context.User))
            {
                await Context.Channel.SendMessageAsync("**ERROR 404** You lack the role to use this command.");

                return;
            }
            var embed = new EmbedBuilder();

            embed.WithTitle("Meeting Request:")
            .AddField("Who:", Context.User.Mention)
            .AddField("Topic:", topic)
            .AddField("When:", when)
            .AddField("Length:", length);
            var requestChannel = Global.Client.GetGuild(Config.bot.guildID).GetTextChannel(ChannelIds.channels.requestID);
            await requestChannel.SendMessageAsync("", false, embed.Build());
        }