parent
31097e03ce
commit
13d8f73356
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ export async function queueRequest(request: apiRequest) {
|
||||||
|
|
||||||
if (userLimit !== false && userLimit.remaining <= 0) {
|
if (userLimit !== false && userLimit.remaining <= 0) {
|
||||||
if (request instanceof DiscordApi.Message) {
|
if (request instanceof DiscordApi.Message) {
|
||||||
request.react("🛑");
|
request.react("🛑").catch(/*it's okay*/);
|
||||||
if (!request.author.dmChannel) await request.author.createDM();
|
if (!request.author.dmChannel) await request.author.createDM();
|
||||||
request.author.dmChannel?.send({
|
request.author.dmChannel?.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
@ -266,7 +266,7 @@ async function executeFromQueue(channel: string) {
|
||||||
response.then(rval => Moderation.checkMessage(rval));
|
response.then(rval => Moderation.checkMessage(rval));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (message instanceof DiscordApi.Message) message.react("😶");
|
if (message instanceof DiscordApi.Message) message.react("😶").catch(/*it's okay*/);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`Error ocurred while handling chat completion request (${(e as object).constructor.name}):`);
|
console.error(`Error ocurred while handling chat completion request (${(e as object).constructor.name}):`);
|
||||||
|
|
Loading…
Reference in a new issue