static private ReadBool ( string data, bool ifnull = false ) : bool | ||
data | string | |
ifnull | bool | |
return | bool |
private static bool GetServerAnnounce(IGuild s, string b) => SQL.ReadBool(SQL.ReadServer(s.Id, b), true);
static bool GetIgnored(string row, string table, ulong id) => SQL.ReadBool(SQL.ReadSingle(row, table, id, "ignored"));
internal static bool GetNsfw(IChannel chan) => (chan as ITextChannel).IsNsfw || SQL.ReadBool(SQL.ReadChannel(chan.Id, "nsfw"));
internal static bool GetNsfw(Channel chan) => SQL.ReadBool(SQL.ReadChannel(chan.Id, "nsfw"));