C# 클래스 DiscordSharp.DiscordClient

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

공개 프로퍼티들

프로퍼티 타입 설명
GetLastVoiceClientLogger Logger

Private Properties

프로퍼티 타입 설명
BeginHeartbeatTask void
ChangeClientUsername void
ChannelCreateEvents void
ChannelDeleteEvents void
ChannelUpdateEvents void
ClientPacketReceived void
ConnectToVoiceAsync Task
ConnectToVoiceAsync void
FindInMessageLog DiscordSharp.DiscordMessage
GetChannelsList void
GetDiscordChannelByID DiscordSharp.DiscordChannel
GetGatewayUrl string
GuildCreateEvents void
GuildDeleteEvents void
GuildMemberAddEvents void
GuildMemberBanRemovedEvents void
GuildMemberBannedEvents void
GuildMemberChunkEvents void
GuildMemberRemoveEvents void
GuildMemberUpdateEvents void
GuildRoleDeleteEvents void
GuildRoleUpdateEvents void
GuildUpdateEvents void
KeepAlive void
MessageCreateEvents void
MessageDeletedEvents void
MessageUpdateEvents void
MiscellaneousOpcodes void
PerformReconnection void
PresenceUpdateEvents void
SendActualMessage DiscordSharp.DiscordMessage
SendDeleteRequest void
SendIdentifyPacket void
ServerInfo Newtonsoft.Json.Linq.JObject
UserUpdateEvents void
VoiceServerUpdateEvents void
VoiceStateUpdateEvents void

공개 메소드들

메소드 설명
AcceptInvite ( string inviteID ) : void

(Client account only) accepts an invite to a server.

AssignRoleToMember ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordRole role, DiscordSharp.DiscordMember member ) : void

Assigns a specified role to a member, given you have the permission.

AssignRoleToMember ( DiscordSharp.DiscordServer guild, List roles, DiscordSharp.DiscordMember member ) : void

Assigns the specified roles to a member, given you have the permission.

AttachFile ( DiscordSharp.DiscordChannel channel, string message, System stream ) : void

Sends a file to the specified DiscordChannel with the given message.

AttachFile ( DiscordSharp.DiscordChannel channel, string message, string pathToFile ) : void

Sends a file to the specified DiscordChannel with the given message.

BanMember ( DiscordSharp.DiscordMember member, DiscordSharp.DiscordServer serverOverride, int days ) : DiscordSharp.DiscordMember

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

BanMember ( DiscordSharp.DiscordMember member, int days ) : DiscordSharp.DiscordMember

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

ChangeChannelTopic ( string Channeltopic, DiscordSharp.DiscordChannel channel ) : void

Changes the channel topic assosciated with the Discord text channel.

ChangeClientAvatar ( Bitmap image ) : void

Changes the current client's avatar. Any high resolution pictures are automatically downscaled and Discord will perform jpeg compression on them.

ChangeClientInformation ( DiscordSharp.DiscordUserInformation info ) : void

Used for changing the client's email, password, username, etc.

ChangeGuildIcon ( Bitmap image, DiscordSharp.DiscordServer guild ) : void

Changes the icon assosciated with the guild. Discord will perform jpeg compression and this image is automatically downscaled.

ClearInternalMessageLog ( ) : int

Clears the internal message log cache

ClearOfflineUsersFromServer ( DiscordSharp.DiscordServer server ) : int

Iterates through a server's members and removes offline users.

Connect ( bool useDotNetWebsocket = false ) : void

Runs the websocket connection for the client hooking up the appropriate events.

ConnectToVoiceChannel ( DiscordSharp.DiscordChannel channel, DiscordSharp.DiscordVoiceConfig voiceConfig = null, bool clientMuted = false, bool clientDeaf = false ) : void

Connects to a given voice channel.

ConnectedToVoice ( ) : bool

CreateChannel ( DiscordSharp.DiscordServer server, string ChannelName, bool voice ) : DiscordSharp.DiscordChannel

Creates either a text or voice channel in a DiscordServer given a name. Given you have the permission of course.

CreateGuild ( string GuildName ) : DiscordSharp.DiscordServer

Creates an empty guild with only this client in it given the following name. Unknown if works on bot accounts or not.

CreateInvite ( DiscordSharp.DiscordChannel channel ) : string

Creates and invite to the given channel.

CreateRole ( DiscordSharp.DiscordServer guild ) : DiscordSharp.DiscordRole

Creates a default role in the specified guild.

DeleteAllMessages ( ) : int

Deletes all messages made by the bot since running.

DeleteChannel ( DiscordSharp.DiscordChannel channel ) : void

Deletes a specified Discord channel given you have the permission.

DeleteInvite ( string id ) : void

Deletes an invite by id

DeleteMessage ( DiscordSharp.DiscordMessage message ) : void

Deletes a specified DiscordMessage.

DeleteMessage ( string id ) : void

Deletes a message with a specified ID. This method will only work if the message was sent since the bot has ran.

DeleteMultipleMessagesInChannel ( DiscordSharp.DiscordChannel channel, int count ) : int

Deletes the specified number of messages in a given channel. Thank you to Siegen for this idea/method!

DeleteRole ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordRole role ) : void

Deletes a specified role.

DeleteServer ( DiscordSharp.DiscordServer server ) : void

(Owner only, non-bot only) Sends an http DELETE request to delete the server you specify.

DeleteServer ( string ServerID ) : void

(Owner only, non-bot only) Sends an http DELETE request to delete the server you specify by ID.

DisconnectFromVoice ( ) : void

Also disposes

DiscordClient ( string tokenOverride = null, bool isBotAccount = false, bool enableLogging = true ) : System

Dispose ( ) : void

Disposes.

EchoPacket ( DiscordSharp.DiscordAudioPacket packet ) : void

Echoes a received audio packet back.

EditGuildName ( DiscordSharp.DiscordServer guild, string NewGuildName ) : void

Edits the name of the guild, given you have the permission.

EditMessage ( string MessageID, string replacementMessage, DiscordSharp.DiscordChannel channel ) : DiscordSharp.DiscordMessage

If you screwed up, you can use this method to edit a given message. This sends out an http patch request with a replacement message

EditRole ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordRole newRole ) : DiscordSharp.DiscordRole

Edits a role with the new role information.

GetBans ( DiscordSharp.DiscordServer server ) : List

Retrieves a DiscordMember List of members banned in the specified server.

GetChannelByID ( long id ) : DiscordSharp.DiscordChannel

GetChannelByName ( string channelName ) : DiscordSharp.DiscordChannel

you probably shouldn't use this.

GetLastMessageSent ( ) : DiscordSharp.DiscordMessage

GetLastMessageSent ( DiscordSharp.DiscordChannel inChannel ) : DiscordSharp.DiscordMessage

GetMemberFromChannel ( DiscordChannelBase channel, string id ) : DiscordSharp.DiscordMember

GetMemberFromChannel ( DiscordChannelBase channel, string username, bool caseSensitive ) : DiscordSharp.DiscordMember

GetMessageHistory ( DiscordChannelBase channel, int count, string idBefore = "", string idAfter = "" ) : List

Returns a List of DiscordMessages.

GetMessageLog ( ) : DiscordMessage>.Dictionary

Any messages logged since connection to the websocket.

GetPrivateChannels ( ) : List

Private channels assosciated with the account.

GetServerChannelIsIn ( DiscordSharp.DiscordChannel channel ) : DiscordSharp.DiscordServer

GetServersList ( ) : List

Current DiscordServers you're connected to.

GetVoiceClient ( ) : DiscordSharp.DiscordVoiceClient

KickMember ( DiscordSharp.DiscordMember member ) : void

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

LeaveServer ( DiscordSharp.DiscordServer server ) : void

Sends an http DELETE request to leave the server you send in this parameter.

LeaveServer ( string ServerID ) : void

(Owner only, non-bot only) Sends an http DELETE request to delete the server you specify.

Logout ( ) : void

Logs out of Discord and then disposes.

MakeInviteURLFromCode ( string id ) : string

Just prepends https://discord.gg/ to a given invite :)

RemoveBan ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordMember member ) : void

Removes a ban on the user.

RemoveBan ( DiscordSharp.DiscordServer guild, string userID ) : void

Removes a ban on the user.

SendLoginRequest ( ) : string

Sends a login request.

SendMessageToChannel ( string message, DiscordSharp.DiscordChannel channel ) : DiscordSharp.DiscordMessage

Sends a message to a channel, what else did you expect?

SendMessageToUser ( string message, DiscordSharp.DiscordMember member ) : DiscordSharp.DiscordMessage

Sends a private message to the given user.

UpdateBotStatus ( bool idle ) : void

Updates the bot's status.

UpdateCurrentGame ( string gameName, bool streaming, string url = null ) : void

Updates the bot's 'Currently playing' status to the following text. Pass in null if you want to remove this.

비공개 메소드들

메소드 설명
BeginHeartbeatTask ( ) : void
ChangeClientUsername ( string newUsername ) : void
ChannelCreateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
ChannelDeleteEvents ( Newtonsoft.Json.Linq.JObject message ) : void
ChannelUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
ClientPacketReceived ( Newtonsoft.Json.Linq.JObject message ) : void
ConnectToVoiceAsync ( ) : Task
ConnectToVoiceAsync ( ) : void
FindInMessageLog ( System.String id ) : DiscordSharp.DiscordMessage
GetChannelsList ( Newtonsoft.Json.Linq.JObject m ) : void
GetDiscordChannelByID ( string id ) : DiscordSharp.DiscordChannel
GetGatewayUrl ( ) : string
GuildCreateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildDeleteEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildMemberAddEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildMemberBanRemovedEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildMemberBannedEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildMemberChunkEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildMemberRemoveEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildMemberUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildRoleDeleteEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildRoleUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
GuildUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
KeepAlive ( ) : void
MessageCreateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
MessageDeletedEvents ( Newtonsoft.Json.Linq.JObject message ) : void
MessageUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
MiscellaneousOpcodes ( Newtonsoft.Json.Linq.JObject message ) : void
PerformReconnection ( ) : void
PresenceUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
SendActualMessage ( string id, string message, DiscordSharp.DiscordMember recipient ) : DiscordSharp.DiscordMessage
SendDeleteRequest ( DiscordSharp.DiscordMessage message ) : void
SendIdentifyPacket ( ) : void
ServerInfo ( string channelOrServerId ) : Newtonsoft.Json.Linq.JObject
UserUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
VoiceServerUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void
VoiceStateUpdateEvents ( Newtonsoft.Json.Linq.JObject message ) : void

메소드 상세

AcceptInvite() 공개 메소드

(Client account only) accepts an invite to a server.
public AcceptInvite ( string inviteID ) : void
inviteID string The ID of the invite you want to accept. This is NOT the full URL of the invite
리턴 void

AssignRoleToMember() 공개 메소드

Assigns a specified role to a member, given you have the permission.
public AssignRoleToMember ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordRole role, DiscordSharp.DiscordMember member ) : void
guild DiscordSharp.DiscordServer The guild you and the user are in.
role DiscordSharp.DiscordRole The role you wish to assign them.
member DiscordSharp.DiscordMember The member you wish to assign the role to.
리턴 void

AssignRoleToMember() 공개 메소드

Assigns the specified roles to a member, given you have the permission.
public AssignRoleToMember ( DiscordSharp.DiscordServer guild, List roles, DiscordSharp.DiscordMember member ) : void
guild DiscordSharp.DiscordServer The guild you and the user are in.
roles List The roles you wish to assign them.
member DiscordSharp.DiscordMember The member you wish to assign the role to.
리턴 void

AttachFile() 공개 메소드

Sends a file to the specified DiscordChannel with the given message.
public AttachFile ( DiscordSharp.DiscordChannel channel, string message, System stream ) : void
channel DiscordSharp.DiscordChannel The channel to send the message to.
message string The message you want the file to have with it.
stream System A stream object to send the bytes from.
리턴 void

AttachFile() 공개 메소드

Sends a file to the specified DiscordChannel with the given message.
public AttachFile ( DiscordSharp.DiscordChannel channel, string message, string pathToFile ) : void
channel DiscordSharp.DiscordChannel The channel to send the message to.
message string The message you want the file to have with it.
pathToFile string The path to the file you wish to send (be careful!)
리턴 void

BanMember() 공개 메소드

Bans a specified DiscordMember from the guild that's assumed from their parent property.
public BanMember ( DiscordSharp.DiscordMember member, DiscordSharp.DiscordServer serverOverride, int days ) : DiscordSharp.DiscordMember
member DiscordSharp.DiscordMember
serverOverride DiscordSharp.DiscordServer
days int
리턴 DiscordSharp.DiscordMember

BanMember() 공개 메소드

Bans a specified DiscordMember from the guild that's assumed from their parent property.
public BanMember ( DiscordSharp.DiscordMember member, int days ) : DiscordSharp.DiscordMember
member DiscordSharp.DiscordMember
days int The number of days the user should be banned for, or 0 for infinite.
리턴 DiscordSharp.DiscordMember

ChangeChannelTopic() 공개 메소드

Changes the channel topic assosciated with the Discord text channel.
public ChangeChannelTopic ( string Channeltopic, DiscordSharp.DiscordChannel channel ) : void
Channeltopic string The new channel topic.
channel DiscordSharp.DiscordChannel The channel you wish to change the topic for.
리턴 void

ChangeClientAvatar() 공개 메소드

Changes the current client's avatar. Any high resolution pictures are automatically downscaled and Discord will perform jpeg compression on them.
public ChangeClientAvatar ( Bitmap image ) : void
image System.Drawing.Bitmap The Bitmap object assosciated with the avatar you wish to upload.
리턴 void

ChangeClientInformation() 공개 메소드

Used for changing the client's email, password, username, etc.
public ChangeClientInformation ( DiscordSharp.DiscordUserInformation info ) : void
info DiscordSharp.DiscordUserInformation
리턴 void

ChangeGuildIcon() 공개 메소드

Changes the icon assosciated with the guild. Discord will perform jpeg compression and this image is automatically downscaled.
public ChangeGuildIcon ( Bitmap image, DiscordSharp.DiscordServer guild ) : void
image System.Drawing.Bitmap The bitmap object associated
guild DiscordSharp.DiscordServer The guild of the icon you wish to change.
리턴 void

ClearInternalMessageLog() 공개 메소드

Clears the internal message log cache
public ClearInternalMessageLog ( ) : int
리턴 int

ClearOfflineUsersFromServer() 공개 메소드

Iterates through a server's members and removes offline users.
public ClearOfflineUsersFromServer ( DiscordSharp.DiscordServer server ) : int
server DiscordSharp.DiscordServer
리턴 int

Connect() 공개 메소드

Runs the websocket connection for the client hooking up the appropriate events.
public Connect ( bool useDotNetWebsocket = false ) : void
useDotNetWebsocket bool If true, DiscordSharp will connect using the .Net Framework's built-in WebSocketClasses. /// Please do not use this on Mono or versions of Windows below 8/8.1
리턴 void

ConnectToVoiceChannel() 공개 메소드

Connects to a given voice channel.
public ConnectToVoiceChannel ( DiscordSharp.DiscordChannel channel, DiscordSharp.DiscordVoiceConfig voiceConfig = null, bool clientMuted = false, bool clientDeaf = false ) : void
channel DiscordSharp.DiscordChannel The channel to connect to.
voiceConfig DiscordSharp.DiscordVoiceConfig The voice configuration to use. If null, default values will be used.
clientMuted bool Whether or not the client will connect muted. Defaults to false.
clientDeaf bool Whether or not the client will connect deaf. Defaults to false.
리턴 void

ConnectedToVoice() 공개 메소드

public ConnectedToVoice ( ) : bool
리턴 bool

CreateChannel() 공개 메소드

Creates either a text or voice channel in a DiscordServer given a name. Given you have the permission of course.
public CreateChannel ( DiscordSharp.DiscordServer server, string ChannelName, bool voice ) : DiscordSharp.DiscordChannel
server DiscordSharp.DiscordServer The server to create the channel in.
ChannelName string The name of the channel (will automatically be lowercased if text)
voice bool True if you want the channel to be a voice channel.
리턴 DiscordSharp.DiscordChannel

CreateGuild() 공개 메소드

Creates an empty guild with only this client in it given the following name. Unknown if works on bot accounts or not.
public CreateGuild ( string GuildName ) : DiscordSharp.DiscordServer
GuildName string The name of the guild you wish to create.
리턴 DiscordSharp.DiscordServer

CreateInvite() 공개 메소드

Creates and invite to the given channel.
public CreateInvite ( DiscordSharp.DiscordChannel channel ) : string
channel DiscordSharp.DiscordChannel
리턴 string

CreateRole() 공개 메소드

Creates a default role in the specified guild.
public CreateRole ( DiscordSharp.DiscordServer guild ) : DiscordSharp.DiscordRole
guild DiscordSharp.DiscordServer The guild to make the role in.
리턴 DiscordSharp.DiscordRole

DeleteAllMessages() 공개 메소드

Deletes all messages made by the bot since running.
public DeleteAllMessages ( ) : int
리턴 int

DeleteChannel() 공개 메소드

Deletes a specified Discord channel given you have the permission.
public DeleteChannel ( DiscordSharp.DiscordChannel channel ) : void
channel DiscordSharp.DiscordChannel The DiscordChannel object to delete
리턴 void

DeleteInvite() 공개 메소드

Deletes an invite by id
public DeleteInvite ( string id ) : void
id string The ID of the invite you wish to delete.
리턴 void

DeleteMessage() 공개 메소드

Deletes a specified DiscordMessage.
public DeleteMessage ( DiscordSharp.DiscordMessage message ) : void
message DiscordSharp.DiscordMessage
리턴 void

DeleteMessage() 공개 메소드

Deletes a message with a specified ID. This method will only work if the message was sent since the bot has ran.
public DeleteMessage ( string id ) : void
id string
리턴 void

DeleteMultipleMessagesInChannel() 공개 메소드

Deletes the specified number of messages in a given channel. Thank you to Siegen for this idea/method!
public DeleteMultipleMessagesInChannel ( DiscordSharp.DiscordChannel channel, int count ) : int
channel DiscordSharp.DiscordChannel The channel to delete messages in.
count int The amount of messages to delete (max 100)
리턴 int

DeleteRole() 공개 메소드

Deletes a specified role.
public DeleteRole ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordRole role ) : void
guild DiscordSharp.DiscordServer The guild the role is in.
role DiscordSharp.DiscordRole The role to delete.
리턴 void

DeleteServer() 공개 메소드

(Owner only, non-bot only) Sends an http DELETE request to delete the server you specify.
public DeleteServer ( DiscordSharp.DiscordServer server ) : void
server DiscordSharp.DiscordServer The DiscordServer object you want to delete.
리턴 void

DeleteServer() 공개 메소드

(Owner only, non-bot only) Sends an http DELETE request to delete the server you specify by ID.
public DeleteServer ( string ServerID ) : void
ServerID string The server's ID you want to delete.
리턴 void

DisconnectFromVoice() 공개 메소드

Also disposes
public DisconnectFromVoice ( ) : void
리턴 void

DiscordClient() 공개 메소드

public DiscordClient ( string tokenOverride = null, bool isBotAccount = false, bool enableLogging = true ) : System
tokenOverride string If you have a token you wish to use, provide it here. Else, a login attempt will be made.
isBotAccount bool Set this to true if your bot is going to be a bot account
enableLogging bool
리턴 System

Dispose() 공개 메소드

Disposes.
public Dispose ( ) : void
리턴 void

EchoPacket() 공개 메소드

Echoes a received audio packet back.
public EchoPacket ( DiscordSharp.DiscordAudioPacket packet ) : void
packet DiscordSharp.DiscordAudioPacket
리턴 void

EditGuildName() 공개 메소드

Edits the name of the guild, given you have the permission.
public EditGuildName ( DiscordSharp.DiscordServer guild, string NewGuildName ) : void
guild DiscordSharp.DiscordServer The guild's name you wish to edit.
NewGuildName string The new guild name.
리턴 void

EditMessage() 공개 메소드

If you screwed up, you can use this method to edit a given message. This sends out an http patch request with a replacement message
public EditMessage ( string MessageID, string replacementMessage, DiscordSharp.DiscordChannel channel ) : DiscordSharp.DiscordMessage
MessageID string The ID of the message you want to edit.
replacementMessage string What you want the text to be edited to.
channel DiscordSharp.DiscordChannel The channel the message is in
리턴 DiscordSharp.DiscordMessage

EditRole() 공개 메소드

Edits a role with the new role information.
public EditRole ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordRole newRole ) : DiscordSharp.DiscordRole
guild DiscordSharp.DiscordServer The guild the role is in.
newRole DiscordSharp.DiscordRole the new role.
리턴 DiscordSharp.DiscordRole

GetBans() 공개 메소드

Retrieves a DiscordMember List of members banned in the specified server.
public GetBans ( DiscordSharp.DiscordServer server ) : List
server DiscordSharp.DiscordServer
리턴 List

GetChannelByID() 공개 메소드

public GetChannelByID ( long id ) : DiscordSharp.DiscordChannel
id long
리턴 DiscordSharp.DiscordChannel

GetChannelByName() 공개 메소드

you probably shouldn't use this.
public GetChannelByName ( string channelName ) : DiscordSharp.DiscordChannel
channelName string
리턴 DiscordSharp.DiscordChannel

GetLastMessageSent() 공개 메소드

public GetLastMessageSent ( ) : DiscordSharp.DiscordMessage
리턴 DiscordSharp.DiscordMessage

GetLastMessageSent() 공개 메소드

public GetLastMessageSent ( DiscordSharp.DiscordChannel inChannel ) : DiscordSharp.DiscordMessage
inChannel DiscordSharp.DiscordChannel
리턴 DiscordSharp.DiscordMessage

GetMemberFromChannel() 공개 메소드

public GetMemberFromChannel ( DiscordChannelBase channel, string id ) : DiscordSharp.DiscordMember
channel DiscordChannelBase
id string
리턴 DiscordSharp.DiscordMember

GetMemberFromChannel() 공개 메소드

public GetMemberFromChannel ( DiscordChannelBase channel, string username, bool caseSensitive ) : DiscordSharp.DiscordMember
channel DiscordChannelBase
username string
caseSensitive bool
리턴 DiscordSharp.DiscordMember

GetMessageHistory() 공개 메소드

Returns a List of DiscordMessages.
public GetMessageHistory ( DiscordChannelBase channel, int count, string idBefore = "", string idAfter = "" ) : List
channel DiscordChannelBase The channel to return them from.
count int How many to return
idBefore string Messages before this message ID.
idAfter string Messages after this message ID.
리턴 List

GetMessageLog() 공개 메소드

Any messages logged since connection to the websocket.
public GetMessageLog ( ) : DiscordMessage>.Dictionary
리턴 DiscordMessage>.Dictionary

GetPrivateChannels() 공개 메소드

Private channels assosciated with the account.
public GetPrivateChannels ( ) : List
리턴 List

GetServerChannelIsIn() 공개 메소드

public GetServerChannelIsIn ( DiscordSharp.DiscordChannel channel ) : DiscordSharp.DiscordServer
channel DiscordSharp.DiscordChannel
리턴 DiscordSharp.DiscordServer

GetServersList() 공개 메소드

Current DiscordServers you're connected to.
public GetServersList ( ) : List
리턴 List

GetVoiceClient() 공개 메소드

public GetVoiceClient ( ) : DiscordSharp.DiscordVoiceClient
리턴 DiscordSharp.DiscordVoiceClient

KickMember() 공개 메소드

Kicks a specified DiscordMember from the guild that's assumed from their parent property.
public KickMember ( DiscordSharp.DiscordMember member ) : void
member DiscordSharp.DiscordMember
리턴 void

LeaveServer() 공개 메소드

Sends an http DELETE request to leave the server you send in this parameter.
public LeaveServer ( DiscordSharp.DiscordServer server ) : void
server DiscordSharp.DiscordServer The DiscordServer object you want to leave.
리턴 void

LeaveServer() 공개 메소드

(Owner only, non-bot only) Sends an http DELETE request to delete the server you specify.
public LeaveServer ( string ServerID ) : void
ServerID string The server's ID you want to delete.
리턴 void

Logout() 공개 메소드

Logs out of Discord and then disposes.
public Logout ( ) : void
리턴 void

MakeInviteURLFromCode() 공개 메소드

Just prepends https://discord.gg/ to a given invite :)
public MakeInviteURLFromCode ( string id ) : string
id string
리턴 string

RemoveBan() 공개 메소드

Removes a ban on the user.
public RemoveBan ( DiscordSharp.DiscordServer guild, DiscordSharp.DiscordMember member ) : void
guild DiscordSharp.DiscordServer The guild to lift the ban from.
member DiscordSharp.DiscordMember The DiscordMember object of the user to lift the ban from, assuming you have it.
리턴 void

RemoveBan() 공개 메소드

Removes a ban on the user.
public RemoveBan ( DiscordSharp.DiscordServer guild, string userID ) : void
guild DiscordSharp.DiscordServer The guild to lift the ban from.
userID string The ID of the user to lift the ban.
리턴 void

SendLoginRequest() 공개 메소드

Sends a login request.
public SendLoginRequest ( ) : string
리턴 string

SendMessageToChannel() 공개 메소드

Sends a message to a channel, what else did you expect?
public SendMessageToChannel ( string message, DiscordSharp.DiscordChannel channel ) : DiscordSharp.DiscordMessage
message string The text to send
channel DiscordSharp.DiscordChannel DiscordChannel object to send the message to.
리턴 DiscordSharp.DiscordMessage

SendMessageToUser() 공개 메소드

Sends a private message to the given user.
public SendMessageToUser ( string message, DiscordSharp.DiscordMember member ) : DiscordSharp.DiscordMessage
message string The message text to send them.
member DiscordSharp.DiscordMember The member you want to send this to.
리턴 DiscordSharp.DiscordMessage

UpdateBotStatus() 공개 메소드

Updates the bot's status.
public UpdateBotStatus ( bool idle ) : void
idle bool True if you want the bot to report as idle.
리턴 void

UpdateCurrentGame() 공개 메소드

Updates the bot's 'Currently playing' status to the following text. Pass in null if you want to remove this.
public UpdateCurrentGame ( string gameName, bool streaming, string url = null ) : void
gameName string The game's name. Old gameid lookup can be seen at: http://hastebin.com/azijiyaboc.json/
streaming bool Whether or not you want your bot to appear as if it is streaming. True means it will show it's streaming.
url string The 'url' for the stream, if your bot is streaming.
리턴 void

프로퍼티 상세

GetLastVoiceClientLogger 공개적으로 프로퍼티

Returns the last debug logger for when the voice client was last connected.
public Logger GetLastVoiceClientLogger
리턴 Logger