discord-get
v0.2.0
Published
Get Discord ID with mentions
Downloads
5
Readme
This module has the function to get Discord ID from messages removing <@ and > from the mention
Commands and your results using var discordid = require('discord-get');
:
discordid.mention('<@123456789>');
the result isgetMentionID
if ocurred a error thegetErr
code is1
discordid.channel('<#123456789>');
the result isgetChannelID
if ocurred a error thegetErr
code is2
discordid.role('<@&123456789>');
the result isgetRoleID
if ocurred a error the geterrgetErr
code is3
discordid.mentionReverse('123456789');
the result isgetMentionMessage
discordid.channelReverse('123456789');
the result isgetChannelMessage
discordid.roleReverse('123456789');
the result isgetRoleMessage