0.2.0 • Published 7 years ago
discord-get v0.2.0
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 isgetMentionIDif ocurred a error thegetErrcode is1discordid.channel('<#123456789>');the result isgetChannelIDif ocurred a error thegetErrcode is2discordid.role('<@&123456789>');the result isgetRoleIDif ocurred a error the geterrgetErrcode is3discordid.mentionReverse('123456789');the result isgetMentionMessagediscordid.channelReverse('123456789');the result isgetChannelMessagediscordid.roleReverse('123456789');the result isgetRoleMessage