Exemplo n.º 1
0
        /// <inheritdoc />
        public async Task <IRestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
        {
            var restWebhook = await SocketTextChannel.GetWebhookAsync(id, options);

            return((restWebhook is null)
                ? null
                : RestWebhookAbstractionExtensions.Abstract(restWebhook));
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public async Task <IRestWebhook> CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null)
 => RestWebhookAbstractionExtensions.Abstract(
     await SocketTextChannel.CreateWebhookAsync(name, avatar, options));