-
Notifications
You must be signed in to change notification settings - Fork 0
this is a merge request #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from all commits
Commits
Show all changes
323 commits
Select commit
Hold shift + click to select a range
e669234
Added db creation factory for migration creation
sphexator faa59eb
Added migrations
sphexator 88770e1
Updated packages
sphexator fc8dace
Moved logging stuff from Startup.cs to Program.cs
sphexator a2c1754
Made QuartzExtension UseQuartz use async instead of bad practice vers…
sphexator c4cd940
Removed uneeded check on advert controller
sphexator eee2ca7
Changed command context to use guild specific context and changed com…
sphexator 91bd10d
Slight adjustment in prefix provider
sphexator 27dc49c
Minor change in RequirePremium.cs
sphexator a9161c2
Use snowflake instead of ulong in RequiredChannel.cs and refactor res…
sphexator 3fe6bc5
Added missing type declaration for ilogger
sphexator 6056f8e
Change member entity to author in ShipGameService.cs
sphexator 2bd1661
Added missing fonts and image templates
sphexator 406a663
Fixed image path to templates
sphexator ea9bb60
Fixed command module, context and bot base
sphexator 0d75508
Moved command formating to extensions and renamed ContextExtensions.c…
sphexator ede4a6e
Use extensions in commands controller
sphexator 94312fd
Remove raw values and use snowflakes instead
sphexator d41b024
Adjusted for new ways to do pages in commands
sphexator f52b909
Changed how to receive channels (old way removed)
sphexator af4ba90
Added base commands
sphexator 341f6b9
Updated libraries
sphexator 14bfed6
Minor change in paginationbuilder, no need to recreate maxPage when i…
sphexator 1b484ca
Added HungerGame.cs commands
sphexator 469dcc8
Minor change to eval command
sphexator 3d78a51
Added advertisement commands
sphexator f891ac2
Switched to using HttpClientFactory
sphexator 9c9cad6
Made collections inside cache private and added methods to add/update…
sphexator 9a5d960
Minor changes in admin commands
sphexator 0376c54
Added sudo command
sphexator 64bbf3d
Added board commands
sphexator fb9e576
Added drop commands
sphexator 0d271b0
Minor change in help command
sphexator ac27acd
Appended IModuleSetting.cs interface to setting modules
sphexator 6c085f0
Minor change with cacheservice changes
sphexator 0dc8197
Updated packages
sphexator 4af8226
Updated nuget.config feeds with the correct disqord myget feed
sphexator 545579d
Changes docker welp
sphexator 3d84821
fix ulong to snowflake issues
sphexator 79bc8a2
Add logger location to console logging format
sphexator c02ca0d
Added extension to grab emote ID from a emote message/reaction string
sphexator dfa7c3f
Merge pull request #133 from sphexator/master
sphexator 7fb8583
Merge pull request #134 from sphexator/f-u-discord
sphexator 0210fdb
Refactored filtermessages to use loops instead of linq
sphexator 9af00da
Added suggestions module
sphexator 57f0626
Added boost module
sphexator 0dde439
Added logging module
sphexator b43aecd
Added mvp module
sphexator 9bc418a
Added setting module module
sphexator 90c47d7
Added welcome module
sphexator fc9a841
Added command ignore module
sphexator 66ddc58
Added account module
sphexator 2b94e35
Added economy module
sphexator 7d181b1
Added rewards for mvp
sphexator cfd0bc4
Added webhooks to db configs + removed unused items
sphexator 26bdb2d
remove unused items in DefaultConfig.cs
sphexator f1ece22
Split EventHandler.cs out to it's desired classes and used discordcli…
sphexator 3600596
Added command ignore caching to caching service
sphexator 26a04e5
Refactoring
sphexator 44c41b7
Implement basic store commands
sphexator 9cc8479
Item and inventory management reworked
sphexator e80aa0f
Updated packages and refactored
sphexator 2f17e7d
Replaced Response with reply within commands
sphexator f452c2c
Added Report.cs module
sphexator 2a996c3
Added Utility.cs module
sphexator 4a45aed
Updated packages
sphexator 2921b7c
Refactored, removed unused methods/classes/files
sphexator 7b9d234
Added server info command
sphexator 967801b
Added quotes commands
sphexator 9ff968f
Added level commands
sphexator f5f5923
Added giveaway commands
sphexator d7e1187
Added store admin and gamble commands
sphexator 5a3a8b1
Added voicerole service
sphexator 76f109c
Added quartz scheduling
sphexator 9250956
Replaced logging messages to webhooks
sphexator 65aecbb
Added number and month formatting extension
sphexator 8e81cfd
Added exp events
sphexator c7f89fa
Replaced all snowflake convertion to a global converter
sphexator e003704
Added webhook ids to logging cfg
sphexator bbd4616
Added quote and giveaway table changes
sphexator a081288
Add new migrations
sphexator b933415
help command fix
Kuukyo d5df7f4
BoardService.cs use webhook instead of regular messages
sphexator 9139407
Renamed GetOrCreateWebhookClient extension with async affix
sphexator 1ed2eb4
Added auto message
sphexator 6aa4885
Checks on emote add url if it's a valid link or what's being download…
sphexator 4d051a2
Changed welcome messages to use webhook instead
sphexator d41698a
Use server name on logging instead of discord name
sphexator 0a0612f
Change the way fonts are found
sphexator 9980618
Partly implemented club service
sphexator e5cd9af
Refactored club ranks enum
sphexator 3c380d7
Updated packages
sphexator b388d27
Updated discord and command packages and reformatted the projected re…
sphexator f647ceb
Split DbService.cs into dedicated partial classes for better overview
sphexator 5ba1eb7
Updated packages and adjusted for new breaking changes
sphexator 27f8e82
Changes
sphexator e937ebc
Re-did Hunger Game database tables
sphexator 9054852
Removed hunger games
sphexator 9c96bb3
Updated db extensions
sphexator 56c07a8
Cleanup and changed logger
sphexator 3be5638
restructure
sphexator 3b0ed48
boop
sphexator 1a0e51a
Updated launchSettings.json
sphexator 5c32762
Updated .gitignore
sphexator affa761
Removed hunger game project
sphexator 5262d94
Added message prune and get channel methods to Bot interface
sphexator c5b732c
Added warning service and handlers
sphexator f416245
Partly implemented the administration commands
sphexator 66244f1
Partly implemented image generation
sphexator 34c70a8
Updated Dockerfile
sphexator 6bee8a7
Added command metrics
sphexator 0515ec9
Made mediatr request contracts into records and added metric interface
sphexator df2e404
Added command and mediatr metrics & deleted old Dockerfile
sphexator 8dc1ca4
Added messaging methods to the bot interface and implemented
sphexator 3ca2a4a
Extended Embed.cs
sphexator 9a69620
Redid embed fields, instead of using tuple, use dedicated types
sphexator 2e4a51c
Add moderation logs and db triggers
sphexator 0817299
Add get auditlog method
sphexator 5b7e883
Implemented user banned and unbanned events
sphexator ab6c5e8
Implemented role adjustment when leveling up
sphexator f9da90f
Added more properties to guild and discord member. Added response typ…
sphexator 77e2fbc
Adjusted for new types and implemented admin commands
sphexator 7de332b
Mapper for guild and discordmember
sphexator ba2be84
Made it so response maps to interactive response
sphexator a1d3a5c
Re-did mapper for textchannel
sphexator da062c7
Changed DiscordMember.cs userid to just Id
sphexator 9271781
Changed response to admin commands.
sphexator 8b78fdc
Changes I forgot I did while ago
sphexator e409f4d
Added some localization and minor club implementation
sphexator c0b6bfd
Minor comments and stuff
sphexator 88945c5
Minor refactoring
sphexator 5750e4e
re-added db extensions and minor cache interface implementations
sphexator ec1dd52
Removed async from caching interface
sphexator a214bc2
Refactoring
sphexator 236d163
Added DeleteMessageAsync method to bot and return type to SendMessage…
sphexator 7f66b38
Added DropConfig.cs
sphexator 002ebe3
Added DropService.cs
sphexator cdd593a
Adjustment to LevelService.cs
sphexator ddd2604
Added Emote.cs entity and mapping
sphexator 712db80
Added category to text channels
sphexator 2185d92
Embed stuff and cache remove method
sphexator 2200e49
Made LevelService.cs more testable
sphexator 014a053
part test
sphexator 98f3384
minor adjustments to make it more testable
sphexator cc7d980
bugfix
sphexator 10be4e7
LevelService.UnitTest.cs
sphexator 12351ed
Added json ignore attribute to reference object
sphexator a675d58
Made DropService.cs more testable
sphexator 486c1a9
stuff
sphexator 3f7aac8
removed useless UnitTest1.cs
sphexator de34ad3
project files cleanup along with upgrade to net8
sphexator e4add3c
Added metrics to commands
sphexator c1483ba
namespace adjustment
sphexator d667f3c
Added metrics (again)
sphexator 9d16dcb
Bump SixLabors.ImageSharp from 3.0.1 to 3.1.3 in /Hanekawa.Application
dependabot[bot] 31317ff
Merge pull request #136 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator 16fda91
many things
sphexator 4f64ff9
Moved font files
sphexator 3d0fd10
Updated packages and removed grpc package
sphexator f539e3d
remove grpc files
sphexator 14be451
Added pagination building for paged responses
sphexator 5fd4e11
minor changes
sphexator a76dda5
Added warning list handler
sphexator 5599226
Added static slash command names
sphexator d8d2f91
adjusted for mediator to be scoped
sphexator f574880
Added topages mapper between domain to disqord
sphexator 4314b8b
stuff
sphexator 8b0a05a
Added ibot singleton
sphexator 55e2402
Minor pagination changes
sphexator 12f700a
Minor changes
sphexator a61f2e7
Semi-added account commands
sphexator 989f26d
Added some ctrs to db users
sphexator 21c1b82
Handler stuff
sphexator 02564c2
image service stuff
sphexator ae1a53f
Registration stuff
sphexator 2fdce17
extension and csproj stuff
sphexator 56fd203
Commands things
sphexator 0477ff7
minor mapping changes
sphexator 63b26eb
space
sphexator e7a0388
minor extension change
sphexator c833dba
Bump SixLabors.ImageSharp from 3.1.3 to 3.1.4 in /Hanekawa.Application
dependabot[bot] bbf4947
Merge pull request #137 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator 0879488
Bump Npgsql from 8.0.2 to 8.0.3 in /Hanekawa.Infrastructure
dependabot[bot] e8ccf7c
Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /Hanekawa.Application
dependabot[bot] 2bf0944
Merge pull request #139 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator 3e28e44
Merge pull request #138 from sphexator/dependabot/nuget/Hanekawa.Infr…
sphexator 6dcc110
A lot of things
sphexator d6c9915
Minor fix changes
sphexator 3171853
stuff
sphexator a561d78
Updated packages
sphexator 6e5c711
messaging changes
sphexator 39a6ee7
minor change
sphexator 108d91c
checkin
sphexator b1ac6b4
Remove old solution file
sphexator 0509625
Updated packages
sphexator 45927ba
Remove redundant packages
sphexator df18626
move secrets
sphexator eef82a0
CI update
sphexator 3adefd6
CI Update
sphexator ec8e85a
CI Update build command
sphexator 02c4f97
CI Updates
sphexator e98d0d2
CI Update 999
sphexator 01751c1
inventory things
sphexator 0e2bfc2
stuff
sphexator ff06cf5
added cache and more inventory things
sphexator b156157
Ranking
sphexator ebe0c2c
Package update
sphexator 3a31a2f
Test stuff
sphexator 436e6f3
Added method to get dbconnection
sphexator 1ca69a4
reduce image height of rank image
sphexator 7e8256f
expand test user
sphexator 4af39f9
minor refactor
sphexator 3079a9f
All the things
sphexator 953ff6e
Added various caching
sphexator 8a7daf2
different things
sphexator edb2b9a
caching issues
sphexator 6554cc5
Update EntityFrameworkCore packages to version 9.0.4
sphexator bb9ca6e
Remove outdated package references for Prometheus.Client.DependencyIn…
sphexator 9e99d76
Refactor configuration classes to initialize properties and improve r…
sphexator dc898de
Enhance Response class to include success status and improve construc…
sphexator c1c51b3
Update GetWalletAsync method to return user currency instead of a stream
sphexator 16bc811
Implement club management features: create, delete, list, join, leave…
sphexator bc423e4
Add club management entities and update response handling for messages
sphexator 637be2b
Enhance wallet and profile response formatting with embeds and improv…
sphexator e5c3040
Fix cache entry type in DropService to use GuildUser for drop tracking
sphexator 6536727
Removed file
sphexator be929df
Refactor inventory management: update Inventory model, add Item and I…
sphexator ad5d200
Refactor cache context and service: remove generic constraints from c…
sphexator 61026dd
Rename test namespaces and files for consistency: update 'Hanekawa.Te…
sphexator 2eaa64e
Refactor item service and inventory management: update namespace for …
sphexator 7b226dd
Add Boost configuration and commands: implement BoostConfig model, cr…
sphexator 82e5cd6
Add localization strings for Boost commands: implement BoostConfig, C…
sphexator 3695681
Migrations
sphexator 8ef7db2
Refactor DiscordMapper: streamline embed author and footer assignment…
sphexator bc24cbb
Update BoostCommands and Embed: set default Timestamp, rename List to…
sphexator 46bcbff
Add Boost command service and localization: implement IBoostCommandSe…
sphexator ddbcf06
Add audit log retrieval methods: implement GetAuditLogAsync with acti…
sphexator dd34370
Update BoostCommands: change ListAsync return type to Response<GuildC…
sphexator e366199
Refactor DbService: improve formatting of ExecuteQuery method for bet…
sphexator 9c705b0
Bump SixLabors.ImageSharp from 3.1.7 to 3.1.11
dependabot[bot] 1802fb5
Merge pull request #142 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator 5824cf0
use ilogger instead of serilog logger
sphexator 3edbe35
Refactor DbExtensions and HanaCommandException: streamline namespaces…
sphexator 8c748f8
Refactor DiscordEventRegister: simplify null checks for GuildId
sphexator c668b47
Refactor AccountCommandService: introduce IAccountCommandService inte…
sphexator 17c0be8
Add BotService: implement IBotService for guild join/leave handling
sphexator 5921cd9
Register BotService in DependencyInjection and change its access modi…
sphexator 0c226a9
Refactor BotService: change class to sealed for improved performance …
sphexator 7c2bd92
Refactor config classes: change GuildId property to init-only for bet…
sphexator b85c4a1
Add ExecuteCommand method to DbService for executing SQL commands
sphexator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,26 @@ | ||
| **/.dockerignore | ||
| **/.dockerignore | ||
| **/.env | ||
| **/.git | ||
| **/.gitignore | ||
| **/.project | ||
| **/.settings | ||
| **/.toolstarget | ||
| **/.vs | ||
| **/.vscode | ||
| **/.idea | ||
| **/*.*proj.user | ||
| **/*.dbmdl | ||
| **/*.jfm | ||
| **/azds.yaml | ||
| **/charts | ||
| **/bin | ||
| **/charts | ||
| **/docker-compose* | ||
| **/Dockerfile* | ||
| **/node_modules | ||
| **/npm-debug.log | ||
| **/obj | ||
| **/Dockerfile | ||
| **/Dockerfile.develop | ||
| **/docker-compose.yml | ||
| **/docker-compose.*.yml | ||
| **/*.dbmdl | ||
| **/*.jfm | ||
| **/secrets.dev.yaml | ||
| **/values.dev.yaml | ||
| **/.toolstarget | ||
| LICENSE | ||
| README.md | ||
| /Hanekawa/Properties/launchSettings.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
|
|
||
| [*.cs] | ||
| indent_style = space | ||
| indent_size = 4 | ||
| tab_width = 2 | ||
|
|
||
| [*] | ||
|
|
||
| # Microsoft .NET properties | ||
| csharp_new_line_before_members_in_object_initializers = false | ||
| csharp_preferred_modifier_order = internal, protected, private, public, file, new, static, sealed, virtual, abstract, override, readonly, extern, unsafe, volatile, async, required:suggestion | ||
| csharp_preserve_single_line_blocks = true | ||
| csharp_space_after_cast = true | ||
| dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none | ||
| dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none | ||
| dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none | ||
|
|
||
| # ReSharper properties | ||
| resharper_arguments_skip_single = true | ||
| resharper_blank_lines_after_block_statements = 0 | ||
| resharper_blank_lines_around_auto_property = 0 | ||
| resharper_blank_lines_around_single_line_invocable = 0 | ||
| resharper_blank_lines_around_single_line_type = 0 | ||
| resharper_braces_for_for = required | ||
| resharper_braces_for_ifelse = not_required_for_both | ||
| resharper_braces_for_using = not_required | ||
| resharper_braces_redundant = false | ||
| resharper_continuous_indent_multiplier = 1 | ||
| resharper_csharp_blank_lines_around_field = 0 | ||
| resharper_csharp_blank_lines_around_invocable = 0 | ||
| resharper_csharp_max_line_length = 135 | ||
| resharper_csharp_remove_blank_lines_near_braces_in_declarations = false | ||
| resharper_csharp_wrap_ternary_expr_style = wrap_if_long | ||
| resharper_instance_members_qualify_declared_in = | ||
| resharper_keep_existing_enum_arrangement = false | ||
| resharper_max_initializer_elements_on_line = 2 | ||
| resharper_parentheses_non_obvious_operations = none, shift, bitwise_and, bitwise_exclusive_or, bitwise_inclusive_or, bitwise | ||
| resharper_parentheses_redundancy_style = remove | ||
| resharper_parentheses_same_type_operations = true | ||
| resharper_place_expr_method_on_single_line = if_owner_is_single_line | ||
| resharper_place_simple_embedded_statement_on_same_line = if_owner_is_single_line | ||
| resharper_wrap_after_primary_constructor_declaration_lpar = false | ||
| resharper_wrap_arguments_style = wrap_if_long | ||
| resharper_wrap_chained_binary_expressions = wrap_if_long | ||
| resharper_wrap_object_and_collection_initializer_style = chop_if_long | ||
| resharper_wrap_primary_constructor_parameters_style = wrap_if_long |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Common; | ||
|
|
||
| public record Ban : IMessageSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| public ulong UserId { get; init; } | ||
| public ulong ModeratorId { get; init; } | ||
| public string Reason { get; init; } = string.Empty; | ||
| public int Days { get; init; } = 7; | ||
|
|
||
| public ProviderSource Source { get; init; } = ProviderSource.Discord; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Common; | ||
|
|
||
| public class Kick : IMessageSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| public ulong UserId { get; init; } | ||
| public ulong ModeratorId { get; init; } | ||
| public string Reason { get; init; } = string.Empty; | ||
|
|
||
| public ProviderSource Source { get; init; } = ProviderSource.Discord; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Common; | ||
|
|
||
| public class Mute : IMessageSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| public ulong UserId { get; init; } | ||
| public ulong ModeratorId { get; init; } | ||
| public string Reason { get; init; } = string.Empty; | ||
| public TimeSpan Duration { get; init; } = TimeSpan.Zero; | ||
|
|
||
| public ProviderSource Source { get; init; } = ProviderSource.Discord; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Common; | ||
|
|
||
| public class Prune : IMessageSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| public ulong UserId { get; init; } | ||
| public ulong ModeratorId { get; init; } | ||
| public string Reason { get; init; } = string.Empty; | ||
| public int Days { get; init; } = 7; | ||
|
|
||
| public ProviderSource Source { get; init; } = ProviderSource.Discord; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Common; | ||
|
|
||
| public class Unban : IMessageSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| public ulong UserId { get; init; } | ||
| public ulong ModeratorId { get; init; } | ||
| public string Reason { get; init; } = string.Empty; | ||
|
|
||
| public ProviderSource Source { get; init; } = ProviderSource.Discord; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Common; | ||
|
|
||
| public class Unmute : IMessageSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| public ulong UserId { get; init; } | ||
| public ulong ModeratorId { get; init; } | ||
| public string Reason { get; init; } = string.Empty; | ||
|
|
||
| public ProviderSource Source { get; init; } = ProviderSource.Discord; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record BotLeave(ulong GuildId) : INotificationSqs; |
6 changes: 6 additions & 0 deletions
6
Hanekawa.Application/Contracts/Discord/Services/MessageDeleted.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record MessageDeleted | ||
| (ulong GuildId, ulong ChannelId, ulong AuthorId, ulong MessageId, string MessageContent) : INotificationSqs; |
7 changes: 7 additions & 0 deletions
7
Hanekawa.Application/Contracts/Discord/Services/MessageReceived.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities.Discord; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record MessageReceived(ulong GuildId, ulong ChannelId, DiscordMember Member, | ||
| ulong MessageId, string? Message, DateTimeOffset CreatedAt) : INotificationSqs; |
6 changes: 6 additions & 0 deletions
6
Hanekawa.Application/Contracts/Discord/Services/MessagesDeleted.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record MessagesDeleted(ulong GuildId, ulong ChannelId, ulong[] AuthorId, | ||
| ulong[] MessageIds, string[] MessageContents) : INotificationSqs; |
5 changes: 5 additions & 0 deletions
5
Hanekawa.Application/Contracts/Discord/Services/ReactionAdd.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record ReactionAdd(ulong GuildId, ulong ChannelId, ulong MessageId, ulong UserId, string? Emoji) : INotificationSqs; |
5 changes: 5 additions & 0 deletions
5
Hanekawa.Application/Contracts/Discord/Services/ReactionCleared.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record ReactionCleared(ulong GuildId, ulong ChannelId, ulong MessageId) : INotificationSqs; |
5 changes: 5 additions & 0 deletions
5
Hanekawa.Application/Contracts/Discord/Services/ReactionRemove.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record ReactionRemove(ulong GuildId, ulong ChannelId, ulong MessageId, ulong UserId, string? Emoji) : INotificationSqs; |
9 changes: 9 additions & 0 deletions
9
Hanekawa.Application/Contracts/Discord/Services/UserBanned.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| using Hanekawa.Application.Interfaces; | ||
| using Hanekawa.Entities.Discord; | ||
|
|
||
| namespace Hanekawa.Application.Contracts.Discord.Services; | ||
|
|
||
| public record UserBanned(DiscordMember Member) : INotificationSqs | ||
| { | ||
| public ulong GuildId { get; init; } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you do this