Class RestWebhook
Inheritance
System.Object
RestWebhook
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Discord.Net.Rest.dll
Syntax
public class RestWebhook : RestEntity<ulong>, IWebhook, IDeletable, ISnowflakeEntity, IEntity<ulong>, IUpdateable
Properties
|
Improve this Doc
View Source
AvatarId
Declaration
public string AvatarId { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ChannelId
Declaration
public ulong ChannelId { get; }
Property Value
| Type |
Description |
| System.UInt64 |
|
|
Improve this Doc
View Source
CreatedAt
Declaration
public DateTimeOffset CreatedAt { get; }
Property Value
| Type |
Description |
| System.DateTimeOffset |
|
|
Improve this Doc
View Source
Creator
Declaration
public IUser Creator { get; }
Property Value
|
Improve this Doc
View Source
GuildId
Declaration
public ulong? GuildId { get; }
Property Value
| Type |
Description |
| System.Nullable<System.UInt64> |
|
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Token
Declaration
public string Token { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
|
Improve this Doc
View Source
DeleteAsync(RequestOptions)
Declaration
public Task DeleteAsync(RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Declaration
public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
Parameters
| Type |
Name |
Description |
| ImageFormat |
format |
|
| System.UInt16 |
size |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ModifyAsync(Action<WebhookProperties>, RequestOptions)
Declaration
public Task ModifyAsync(Action<WebhookProperties> func, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
UpdateAsync(RequestOptions)
Declaration
public Task UpdateAsync(RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IWebhook.Channel
Declaration
ITextChannel IWebhook.Channel { get; }
Returns
|
Improve this Doc
View Source
IWebhook.Guild
Declaration
IGuild IWebhook.Guild { get; }
Returns
|
Improve this Doc
View Source
IWebhook.ModifyAsync(Action<WebhookProperties>, RequestOptions)
Declaration
Task IWebhook.ModifyAsync(Action<WebhookProperties> func, RequestOptions options)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements