mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-08 19:39:27 +02:00
hotfix: error "Webhook not found"
This commit is contained in:
@@ -38,7 +38,7 @@ namespace DiscordApp
|
||||
}
|
||||
public async Task onReady()
|
||||
{
|
||||
ChangeNicknames();
|
||||
await ChangeNicknames();
|
||||
var myTimer = new System.Timers.Timer(6 * 60 * 60 * 1000); //calculate six hours in milliseconds
|
||||
myTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
|
||||
myTimer.Start();
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace DiscordApp.Justice.Interactions
|
||||
[ModalInteraction("reworkpassportModal")]
|
||||
public async Task reCreatePassportInteraction(IReWorkPassportModal modal)
|
||||
{
|
||||
await DeferAsync(true);
|
||||
|
||||
int passportId;
|
||||
int.TryParse(modal.Id, out passportId);
|
||||
@@ -115,6 +116,7 @@ namespace DiscordApp.Justice.Interactions
|
||||
[ModalInteraction("ReNewPassportModal")]
|
||||
public async Task renewPassportInteraction(INewPassportModal modal)
|
||||
{
|
||||
await DeferAsync(true);
|
||||
|
||||
string name = modal.NickName;
|
||||
string RpName = modal.RPName;
|
||||
@@ -241,6 +243,7 @@ namespace DiscordApp.Justice.Interactions
|
||||
[ModalInteraction("passportModal")]
|
||||
public async Task createPassportInteraction(INewPassportModal modal)
|
||||
{
|
||||
await DeferAsync(true);
|
||||
|
||||
string name = modal.NickName;
|
||||
string RpName = modal.RPName;
|
||||
|
||||
Reference in New Issue
Block a user