mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Optimize/tweak message saving
This commit is contained in:
parent
5ae5e7bc1d
commit
0d1bfefce0
3 changed files with 16 additions and 23 deletions
|
@ -226,9 +226,6 @@ export class GuildSavedMessages extends BaseGuildRepository {
|
|||
}
|
||||
|
||||
async createFromMsg(msg: Message, overrides = {}) {
|
||||
const existingSavedMsg = await this.find(msg.id);
|
||||
if (existingSavedMsg) return;
|
||||
|
||||
// FIXME: Hotfix
|
||||
if (!msg.channel) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue