Beispiel #1
0
        public async Task AddUserToTopic(string topicName)
        {
            var topic = await topics.GetTopic(Context.Guild, topicName);

            if (topic == null)
            {
                // God this entire library/framework is such a f*****g nightmare.
                // This is begging for somebody to write !topic_join @everyone
                // await ReplyAsync($"No such topic `{topicName}`");
                await ReplyAsync($"No such topic");

                return;
            }
            // They couldn't just give me a GuildUser if I'm requiring the Guild context?
            await topics.AddUser(topic, Context.Guild.GetUser(Context.User.Id));
        }