Exemple #1
0
 private string Resolve(string text, UserMentionHandling userHandling, ChannelMentionHandling channelHandling,
                        RoleMentionHandling roleHandling, EveryoneMentionHandling everyoneHandling)
 {
     text = MentionUtils.ResolveUserMentions(text, Channel, MentionedUsers, userHandling);
     text = MentionUtils.ResolveChannelMentions(text, (Channel as IGuildChannel)?.Guild, channelHandling);
     text = MentionUtils.ResolveRoleMentions(text, MentionedRoles, roleHandling);
     text = MentionUtils.ResolveEveryoneMentions(text, everyoneHandling);
     return(text);
 }