Ejemplo n.º 1
0
        public async Task UpdateAsync()
        {
            if (!Synced && (DateTime.UtcNow - LastRefreshed) < RefreshRate)
            {
                return;
            }

            await _message.ModifyAsync(Content?.Content, Content?.Embed?.Build(), new RequestOptions
            {
                RetryMode = RetryMode.RetryTimeouts
            });

            Content       = _message.Copy();
            LastRefreshed = DateTime.UtcNow;
            Synced        = true;
        }