public CWBContext(CWBDrone bot, IUserMessage message) { Client = bot.Socket; Channel = message.Channel; TextChannel = message.Channel as ITextChannel; Guild = TextChannel?.Guild; User = message.Author; GuildUser = User as IGuildUser; ConfigGuild = Guild != null ? bot.Configuration.Guilds.GetGuild(Guild.Id) : null; Bot = bot; Message = message; Prefix = ConfigGuild?.Prefix ?? CWBDrone.Prefix; }
public Task <bool> ReadyToDisconnect(CWBDrone bot) { return(Task.FromResult(true)); }
public virtual Task <bool> ReadyToDisconnect(CWBDrone bot) { Disconnecting = true; return(Task.FromResult(true)); }