mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d921b6889d | ||
|
aaef365bdc | ||
|
a01a646cbf |
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
||||||
|
|
||||||
|
## [5.3.5] - 17.01.2025
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
- .sar rm will now accept role ids in case the role was deleted
|
||||||
|
- `.deletewaifus` should work again
|
||||||
|
|
||||||
## [5.3.4] - 14.01.2025
|
## [5.3.4] - 14.01.2025
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
@@ -192,15 +192,22 @@ public partial class Administration
|
|||||||
[Cmd]
|
[Cmd]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[UserPerm(GuildPerm.ManageRoles)]
|
[UserPerm(GuildPerm.ManageRoles)]
|
||||||
public async Task SarRemove([Leftover] IRole role)
|
[Priority(1)]
|
||||||
{
|
public Task SarRemove([Leftover] IRole role)
|
||||||
var guser = (IGuildUser)ctx.User;
|
=> SarRemove(role.Id);
|
||||||
|
|
||||||
var success = await _service.RemoveAsync(role.Guild.Id, role.Id);
|
[Cmd]
|
||||||
|
[RequireContext(ContextType.Guild)]
|
||||||
|
[UserPerm(GuildPerm.ManageRoles)]
|
||||||
|
[Priority(0)]
|
||||||
|
public async Task SarRemove([Leftover] ulong roleId)
|
||||||
|
{
|
||||||
|
var role = await ctx.Guild.GetRoleAsync(roleId);
|
||||||
|
var success = await _service.RemoveAsync(ctx.Guild.Id, roleId);
|
||||||
if (!success)
|
if (!success)
|
||||||
await Response().Error(strs.self_assign_not).SendAsync();
|
await Response().Error(strs.self_assign_not).SendAsync();
|
||||||
else
|
else
|
||||||
await Response().Confirm(strs.self_assign_rem(Format.Bold(role.Name))).SendAsync();
|
await Response().Confirm(strs.self_assign_rem(Format.Bold(role?.Name ?? roleId.ToString()))).SendAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Cmd]
|
[Cmd]
|
||||||
|
@@ -16,9 +16,9 @@ public class GamblingCleanupService : IGamblingCleanupService, INService
|
|||||||
public async Task DeleteWaifus()
|
public async Task DeleteWaifus()
|
||||||
{
|
{
|
||||||
await using var ctx = _db.GetDbContext();
|
await using var ctx = _db.GetDbContext();
|
||||||
await ctx.GetTable<WaifuInfo>().DeleteAsync();
|
|
||||||
await ctx.GetTable<WaifuItem>().DeleteAsync();
|
await ctx.GetTable<WaifuItem>().DeleteAsync();
|
||||||
await ctx.GetTable<WaifuUpdate>().DeleteAsync();
|
await ctx.GetTable<WaifuUpdate>().DeleteAsync();
|
||||||
|
await ctx.GetTable<WaifuInfo>().DeleteAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task DeleteWaifu(ulong userId)
|
public async Task DeleteWaifu(ulong userId)
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>true</ImplicitUsings>
|
<ImplicitUsings>true</ImplicitUsings>
|
||||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||||
<Version>5.3.4</Version>
|
<Version>5.3.5</Version>
|
||||||
|
|
||||||
<!-- Output/build -->
|
<!-- Output/build -->
|
||||||
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
|
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
|
||||||
|
Reference in New Issue
Block a user