Table of Contents

Class SocketWebhookUser

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents a WebSocket-based webhook user.

public class SocketWebhookUser : SocketUser, IWebhookUser, IGuildUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence, IVoiceState
Inheritance
SocketWebhookUser
Implements
Inherited Members
Extension Methods

Properties

AvatarId

Gets the identifier of this user's avatar.

public override string AvatarId { get; }

Property Value

string

DiscriminatorValue

Gets the per-username unique ID for this user. This will return 0 for users who have migrated to new username system.

public override ushort DiscriminatorValue { get; }

Property Value

ushort

GlobalName

Gets the user's display name, if it is set. For bots, this will get the application name.

public override string GlobalName { get; }

Property Value

string

Remarks

This property will be null if user has no display name set.

Guild

Gets the guild of this webhook.

public SocketGuild Guild { get; }

Property Value

SocketGuild

IsBot

Gets a value that indicates whether this user is identified as a bot.

public override bool IsBot { get; }

Property Value

bool

true if the user is a bot application; otherwise false.

Remarks

This property retrieves a value that indicates whether this user is a registered bot application (indicated by the blue BOT tag within the official chat client).

IsWebhook

Gets a value that indicates whether this user is a webhook user.

public override bool IsWebhook { get; }

Property Value

bool

true if the user is a webhook; otherwise false.

Username

Gets the username for this user.

public override string Username { get; }

Property Value

string

WebhookId

Gets the ID of a webhook.

public ulong WebhookId { get; }

Property Value

ulong