コード例 #1
0
ファイル: GuildData.cs プロジェクト: JGray0705/PotatoBot
 public static bool Upsert(GuildConfiguration config)
 {
     return(DBWrapper.Upsert(DBName, TableName, config));
 }
コード例 #2
0
ファイル: GuildData.cs プロジェクト: JGray0705/PotatoBot
 public static GuildConfiguration FindByID(ulong id)
 {
     return(DBWrapper.FindOne <GuildConfiguration>(DBName, TableName, x => x.Id == id));
 }
コード例 #3
0
ファイル: GuildData.cs プロジェクト: JGray0705/PotatoBot
        public static string GetPrefix(ulong id)
        {
            var guild = DBWrapper.FindOne <GuildConfiguration>(DBName, TableName, x => x.Id == id);

            return(guild?.Prefix);
        }