mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-10 12:29:31 +02:00
add timer-cnhager nickname
This commit is contained in:
@@ -10,15 +10,15 @@ namespace DiscordApp.Justice.Interactions
|
||||
{
|
||||
[ComponentInteraction("NewIndividualEntrepreneur")]
|
||||
public async Task AplyWork()
|
||||
=> await Context.Interaction.RespondWithModalAsync<INewIndividualEntrepreneur>("newIndividualEterpreneur");
|
||||
=> await Context.Interaction.RespondWithModalAsync<INewIndividualEntrepreneur>("newIndividualEterpreneurModal");
|
||||
[ComponentInteraction("NewBizness")]
|
||||
public async Task reCreatePassport()
|
||||
=> await Context.Interaction.RespondWithModalAsync<INewBizness>("NewBizness");
|
||||
=> await Context.Interaction.RespondWithModalAsync<INewBizness>("NewBiznessModal");
|
||||
|
||||
[ModalInteraction("newIndividualEterpreneur")]
|
||||
[ModalInteraction("newIndividualEterpreneurModal")]
|
||||
public async Task newIndividualEterpreneur(INewIndividualEntrepreneur modal)
|
||||
{
|
||||
await DeferAsync(true);
|
||||
|
||||
Passport? applicant = await Startup.appDbContext.Passport.FindAsync(int.Parse(modal.passportId));
|
||||
if (applicant == null)
|
||||
{
|
||||
@@ -68,10 +68,10 @@ namespace DiscordApp.Justice.Interactions
|
||||
await channel.SendMessageAsync(embed: embed);
|
||||
}
|
||||
|
||||
[ModalInteraction("NewBizness")]
|
||||
[ModalInteraction("NewBiznessModal")]
|
||||
public async Task newBizness(INewBizness modal)
|
||||
{
|
||||
await DeferAsync(true);
|
||||
|
||||
Passport? applicant = await Startup.appDbContext.Passport.FindAsync(int.Parse(modal.passportId));
|
||||
|
||||
if (applicant == null)
|
||||
|
||||
Reference in New Issue
Block a user