Method: Discordrb::Message#link

Defined in:
lib/discordrb/data/message.rb

Returns a URL that a user can use to navigate to this message in the client.

Returns:

  • (String)

    a URL that a user can use to navigate to this message in the client



357
358
359
# File 'lib/discordrb/data/message.rb', line 357

def link
  "https://discord.com/channels/#{@server&.id || '@me'}/#{@channel.id}/#{@id}"
end