Exemplo n.º 1
0
        public string RoleList(TopicDefinition topic)
        {
            string result = "";

            foreach (string role in topic.Roles)
            {
                result += $"{role} ";
            }
            return(result);
        }
Exemplo n.º 2
0
        private async Task MarkMessage(BotChannel bChan, RolesSettings settings, DiscordChannelMessage dMessage, string topicToAdd)
        {
            await MisfitBot_MKII.DiscordWrap.DiscordClient.ClearReactionsOnMessage(dMessage);

            TopicDefinition topic = settings.Topics.Find(p => p.TopicName == topicToAdd);

            foreach (string role in topic.Roles)
            {
                if (settings.RoleTable.ContainsKey(role))
                {
                    await MisfitBot_MKII.DiscordWrap.DiscordClient.ReactionAdd(dMessage, settings.RoleTable[role]);
                }
            }
            //bool isSurrogate = Char.IsSurrogate(arg3.Emote.Name[0]);
        }