mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 21:54:36 +00:00
Fix guild settings being stored incorrectly
This commit is contained in:
parent
7f8c722b3d
commit
5d915f9ca0
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ namespace BirthdayBot.Data
|
|||
+ "announce_message_pl = @AnnounceMsgPl, "
|
||||
+ "announce_ping = @AnnouncePing "
|
||||
+ "where guild_id = @Gid";
|
||||
c.Parameters.Add("@Gid", NpgsqlDbType.Bigint).Value = (ulong)GuildId;
|
||||
c.Parameters.Add("@Gid", NpgsqlDbType.Bigint).Value = (long)GuildId;
|
||||
NpgsqlParameter p;
|
||||
|
||||
p = c.Parameters.Add("@RoleId", NpgsqlDbType.Bigint);
|
||||
|
@ -406,7 +406,7 @@ namespace BirthdayBot.Data
|
|||
if (_tz != null) p.Value = _tz;
|
||||
else p.Value = DBNull.Value;
|
||||
|
||||
c.Parameters.Add("@Moderated", NpgsqlDbType.Text).Value = _moderated;
|
||||
c.Parameters.Add("@Moderated", NpgsqlDbType.Boolean).Value = _moderated;
|
||||
|
||||
p = c.Parameters.Add("@ModRole", NpgsqlDbType.Bigint);
|
||||
if (ModeratorRole.HasValue) p.Value = (long)ModeratorRole.Value;
|
||||
|
|
Loading…
Reference in a new issue