mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
minor edit
This commit is contained in:
parent
a1ab50199f
commit
4009daffbb
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@ -25,3 +25,5 @@ When contributing, you should follow the same code style already used throughout
|
||||
3. Commas should always have a space after them
|
||||
4. Use tabs, not spaces, and always indent
|
||||
5. Use arrow functions
|
||||
|
||||
**Note**: Create `user/dev.env` and `user/dev.config.js` for testing.
|
||||
|
@ -38,9 +38,14 @@ module.exports = {
|
||||
value: '',
|
||||
});
|
||||
} else {
|
||||
panel = await client.channels.cache.get(chanID.get('value')).messages.fetch(msgID.get('value')); // get old panel message
|
||||
if (panel)
|
||||
panel.delete({ reason: 'Creating new panel/widget' }).then(() => log.info('Deleted old panel')).catch(e => log.warn(e)); // delete old panel
|
||||
try {
|
||||
panel = await client.channels.cache.get(chanID.get('value')).messages.fetch(msgID.get('value')); // get old panel message
|
||||
if (panel)
|
||||
panel.delete({ reason: 'Creating new panel/widget' }).then(() => log.info('Deleted old panel')).catch(e => log.warn(e)); // delete old panel
|
||||
} catch (e) {
|
||||
log.warn('Couldn\'t delete old panel');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
message.delete();
|
||||
|
@ -13,7 +13,7 @@
|
||||
* > For detailed instructions, visit the GitHub repository and read the documentation:
|
||||
* https://github.com/eartharoid/DiscordTickets/wiki
|
||||
*
|
||||
* > IMPORTANT: Also rename 'user/example.env' to 'user/.env' and edit the TOKEN
|
||||
* > IMPORTANT: Also edit the TOKEN in 'user/.env'
|
||||
*
|
||||
* ---------------------
|
||||
* Support
|
||||
|
Loading…
Reference in New Issue
Block a user