C# Class qtbot.BotTools.Tools

Afficher le fichier Open project: stepperman/HB-Discord-Bot

Méthodes publiques

Свойство Type Description
random System.Random

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Tools ( ) : System

Method Details

CalculateTime() public static méthode

public static CalculateTime ( int minutes ) : string
minutes int
Résultat string

CalculateTimeWithSeconds() public static méthode

public static CalculateTimeWithSeconds ( int seconds ) : string
seconds int
Résultat string

CreateFile() public static méthode

public static CreateFile ( string Path ) : void
Path string
Résultat void

GetPerms() public static méthode

public static GetPerms ( CommandArgs e, IGuildUser u ) : int
e qtbot.CommandPlugin.CommandArgs
u IGuildUser
Résultat int

GetPerms() public static méthode

public static GetPerms ( ulong serverId, IGuildUser u ) : int
serverId ulong
u IGuildUser
Résultat int

GetServerInfo() public static méthode

public static GetServerInfo ( ulong serverId ) : ServerInfo
serverId ulong
Résultat ServerInfo

GetUser() public static méthode

public static GetUser ( CommandArgs eventArgs ) : SocketUser
eventArgs qtbot.CommandPlugin.CommandArgs
Résultat SocketUser

InRange() public static méthode

public static InRange ( double val, double min, double max ) : bool
val double
min double
max double
Résultat bool

LogError() public static méthode

public static LogError ( string ErrorMessage, string exMessage ) : void
ErrorMessage string
exMessage string
Résultat void

ReadFile() public static méthode

public static ReadFile ( string Path ) : string
Path string
Résultat string

ReplyAsync() public static méthode

public static ReplyAsync ( CommandArgs e, string text ) : Task
e qtbot.CommandPlugin.CommandArgs
text string
Résultat Task

ReplyAsync() public static méthode

public static ReplyAsync ( CommandArgs e, string text, bool mentionUser ) : Task
e qtbot.CommandPlugin.CommandArgs
text string
mentionUser bool
Résultat Task

ReplyAsync() public static méthode

public static ReplyAsync ( SocketUser user, IMessageChannel channel, string text, bool mentionUser ) : Task
user SocketUser
channel IMessageChannel
text string
mentionUser bool
Résultat Task

SaveFile() public static méthode

public static SaveFile ( string content, string Path, FileMode append ) : void
content string
Path string
append FileMode
Résultat void

SaveServerInfo() public static méthode

public static SaveServerInfo ( ) : void
Résultat void

Property Details

random public_oe static_oe property

public static Random,System random
Résultat System.Random