mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
change typing indicator
This commit is contained in:
parent
caa0a2c3dc
commit
6d67d0ba23
4 changed files with 10 additions and 10 deletions
|
@ -79,11 +79,11 @@ const embedTypes = Object.freeze({
|
|||
color: COLORS.embed
|
||||
}
|
||||
},
|
||||
"typing": (context) => {
|
||||
"ai": (context) => {
|
||||
return {
|
||||
author: {
|
||||
iconUrl: STATIC_ICONS.typing,
|
||||
name: `Loading`
|
||||
iconUrl: STATIC_ICONS.ai,
|
||||
name: `Generating`
|
||||
},
|
||||
color: COLORS.embed
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ module.exports.createEmbed = function(type, context, content){
|
|||
if(!content) embedTypes[type](context)
|
||||
let emb = embedTypes[type](context)
|
||||
|
||||
if(["success","warning","error","loading","typing"].includes(type)){
|
||||
if(["success","warning","error","loading","ai"].includes(type)){
|
||||
emb.author.name = content
|
||||
return emb
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue