C# 클래스 qtbot.BotTools.Tools

파일 보기 프로젝트 열기: stepperman/HB-Discord-Bot

공개 프로퍼티들

프로퍼티 타입 설명
random System.Random

공개 메소드들

메소드 설명
CalculateTime ( int minutes ) : string
CalculateTimeWithSeconds ( int seconds ) : string
CreateFile ( string Path ) : void
GetPerms ( CommandArgs e, IGuildUser u ) : int
GetPerms ( ulong serverId, IGuildUser u ) : int
GetServerInfo ( ulong serverId ) : ServerInfo
GetUser ( CommandArgs eventArgs ) : SocketUser
InRange ( double val, double min, double max ) : bool
LogError ( string ErrorMessage, string exMessage ) : void
ReadFile ( string Path ) : string
ReplyAsync ( CommandArgs e, string text ) : Task
ReplyAsync ( CommandArgs e, string text, bool mentionUser ) : Task
ReplyAsync ( SocketUser user, IMessageChannel channel, string text, bool mentionUser ) : Task
SaveFile ( string content, string Path, FileMode append ) : void
SaveServerInfo ( ) : void

비공개 메소드들

메소드 설명
Tools ( ) : System

메소드 상세

CalculateTime() 공개 정적인 메소드

public static CalculateTime ( int minutes ) : string
minutes int
리턴 string

CalculateTimeWithSeconds() 공개 정적인 메소드

public static CalculateTimeWithSeconds ( int seconds ) : string
seconds int
리턴 string

CreateFile() 공개 정적인 메소드

public static CreateFile ( string Path ) : void
Path string
리턴 void

GetPerms() 공개 정적인 메소드

public static GetPerms ( CommandArgs e, IGuildUser u ) : int
e qtbot.CommandPlugin.CommandArgs
u IGuildUser
리턴 int

GetPerms() 공개 정적인 메소드

public static GetPerms ( ulong serverId, IGuildUser u ) : int
serverId ulong
u IGuildUser
리턴 int

GetServerInfo() 공개 정적인 메소드

public static GetServerInfo ( ulong serverId ) : ServerInfo
serverId ulong
리턴 ServerInfo

GetUser() 공개 정적인 메소드

public static GetUser ( CommandArgs eventArgs ) : SocketUser
eventArgs qtbot.CommandPlugin.CommandArgs
리턴 SocketUser

InRange() 공개 정적인 메소드

public static InRange ( double val, double min, double max ) : bool
val double
min double
max double
리턴 bool

LogError() 공개 정적인 메소드

public static LogError ( string ErrorMessage, string exMessage ) : void
ErrorMessage string
exMessage string
리턴 void

ReadFile() 공개 정적인 메소드

public static ReadFile ( string Path ) : string
Path string
리턴 string

ReplyAsync() 공개 정적인 메소드

public static ReplyAsync ( CommandArgs e, string text ) : Task
e qtbot.CommandPlugin.CommandArgs
text string
리턴 Task

ReplyAsync() 공개 정적인 메소드

public static ReplyAsync ( CommandArgs e, string text, bool mentionUser ) : Task
e qtbot.CommandPlugin.CommandArgs
text string
mentionUser bool
리턴 Task

ReplyAsync() 공개 정적인 메소드

public static ReplyAsync ( SocketUser user, IMessageChannel channel, string text, bool mentionUser ) : Task
user SocketUser
channel IMessageChannel
text string
mentionUser bool
리턴 Task

SaveFile() 공개 정적인 메소드

public static SaveFile ( string content, string Path, FileMode append ) : void
content string
Path string
append FileMode
리턴 void

SaveServerInfo() 공개 정적인 메소드

public static SaveServerInfo ( ) : void
리턴 void

프로퍼티 상세

random 공개적으로 정적으로 프로퍼티

public static Random,System random
리턴 System.Random