@magicyan/discord 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- const discord_js = require('discord.js');
4
-
5
- function formatedMention(ref, alt = "") {
6
- return ref instanceof discord_js.Role ? discord_js.roleMention(ref.id) : ref instanceof discord_js.User ? discord_js.userMention(ref.id) : ref ? discord_js.channelMention(ref.id) : alt;
7
- }
8
-
9
- exports.formatedMention = formatedMention;
@@ -1,7 +0,0 @@
1
- import { Role, roleMention, User, userMention, channelMention } from 'discord.js';
2
-
3
- function formatedMention(ref, alt = "") {
4
- return ref instanceof Role ? roleMention(ref.id) : ref instanceof User ? userMention(ref.id) : ref ? channelMention(ref.id) : alt;
5
- }
6
-
7
- export { formatedMention };