mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 19:45:16 +00:00
Fixed crash command
This commit is contained in:
parent
0a34a94379
commit
b57e59cc33
1 changed files with 3 additions and 2 deletions
|
|
@ -112,6 +112,7 @@ module.exports = async (client, interaction, args) => {
|
|||
i.deferUpdate();
|
||||
|
||||
index = result + 1;
|
||||
profit = money * multiplier;
|
||||
|
||||
Schema.findOne({ Guild: interaction.guild.id, User: user.id }, async (err, data) => {
|
||||
if (data) {
|
||||
|
|
@ -122,7 +123,6 @@ module.exports = async (client, interaction, args) => {
|
|||
|
||||
return client.embed({
|
||||
desc: `Crash Results of ${user}`,
|
||||
edit: true,
|
||||
fields: [
|
||||
{
|
||||
name: `Profit`,
|
||||
|
|
@ -130,7 +130,8 @@ module.exports = async (client, interaction, args) => {
|
|||
inline: false,
|
||||
}
|
||||
],
|
||||
components: [disableRow]
|
||||
components: [disableRow],
|
||||
type: 'edit'
|
||||
}, msg)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue