C# Class DiscordSharp.Objects.DiscordMember

Afficher le fichier Open project: Luigifan/DiscordSharp Class Usage Examples

Private Properties

Свойство Type Description
Copy DiscordMember
DiscordMember Newtonsoft.Json
DiscordMember Newtonsoft.Json
Equals bool
SendActualMessage void
SetPresence void

Méthodes publiques

Méthode Description
Ban ( int days ) : void

Bans this DiscordMember from the guild that's assumed from their parent property.

ChangeNickname ( string nickname ) : void

Changes the nickname for this user, if you have permission to do so.

Equals ( object obj ) : bool
GetAvatar ( ) : Bitmap

Gets the user's avatar.

GetAvatarURL ( ) : Uri

HasPermission ( DiscordSpecialPermissions permission ) : bool

Iterates all the roles the user has checking if any of the present have the permission you pass.

Kick ( ) : void

Kicks this DiscordMember from the guild that's assumed from their parent property.

SendMessage ( string message ) : void
SlideIntoDMs ( string message ) : void
operator ( ) : bool

Private Methods

Méthode Description
Copy ( ) : DiscordMember

Testing copy method.

DiscordMember ( ) : Newtonsoft.Json

should only be used for Newtonsoft.Json

DiscordMember ( DiscordClient parent ) : Newtonsoft.Json
Equals ( DiscordMember obj ) : bool
SendActualMessage ( string id, string message ) : void
SetPresence ( string status ) : void

Method Details

Ban() public méthode

Bans this DiscordMember from the guild that's assumed from their parent property.
public Ban ( int days ) : void
days int The number of days the user should be banned for, or 0 for infinite.
Résultat void

ChangeNickname() public méthode

Changes the nickname for this user, if you have permission to do so.
public ChangeNickname ( string nickname ) : void
nickname string null for no nickname.
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetAvatar() public méthode

Gets the user's avatar.
public GetAvatar ( ) : Bitmap
Résultat System.Drawing.Bitmap

GetAvatarURL() public méthode

public GetAvatarURL ( ) : Uri
Résultat System.Uri

HasPermission() public méthode

Iterates all the roles the user has checking if any of the present have the permission you pass.
public HasPermission ( DiscordSpecialPermissions permission ) : bool
permission DiscordSpecialPermissions The permission to check.
Résultat bool

Kick() public méthode

Kicks this DiscordMember from the guild that's assumed from their parent property.
public Kick ( ) : void
Résultat void

SendMessage() public méthode

public SendMessage ( string message ) : void
message string
Résultat void

SlideIntoDMs() public méthode

public SlideIntoDMs ( string message ) : void
message string
Résultat void

operator() public static méthode

public static operator ( ) : bool
Résultat bool