C# 클래스 DiscordSharp.Objects.DiscordMember

파일 보기 프로젝트 열기: Luigifan/DiscordSharp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Copy DiscordMember
DiscordMember Newtonsoft.Json
DiscordMember Newtonsoft.Json
Equals bool
SendActualMessage void
SetPresence void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Ban() 공개 메소드

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.
리턴 void

ChangeNickname() 공개 메소드

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

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetAvatar() 공개 메소드

Gets the user's avatar.
public GetAvatar ( ) : Bitmap
리턴 System.Drawing.Bitmap

GetAvatarURL() 공개 메소드

public GetAvatarURL ( ) : Uri
리턴 System.Uri

HasPermission() 공개 메소드

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.
리턴 bool

Kick() 공개 메소드

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

SendMessage() 공개 메소드

public SendMessage ( string message ) : void
message string
리턴 void

SlideIntoDMs() 공개 메소드

public SlideIntoDMs ( string message ) : void
message string
리턴 void

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool