示例#1
0
        public async Task GetSearchForMentions()
        {
            if (Helper.Secrets == null)
            {
                return;
            }

            var mentionedUsers = await Mentions.GetSearchForMentionsAsync(Helper.Client, Helper.Kind, "yurucamp").ConfigureAwait(false);

            foreach (var value in mentionedUsers)
            {
                if (value.Undeserialized != null)
                {
                    throw new JsonException("Undeserialized is not empty");
                }
            }

            var json = JsonSerializer.Serialize(mentionedUsers, Core.Options);
        }