discourse/plugins/chat/app/serializers/chat/incoming_webhook_serializer.rb

10 lines
270 B
Ruby

# frozen_string_literal: true
module Chat
class IncomingWebhookSerializer < ApplicationSerializer
has_one :chat_channel, serializer: Chat::ChannelSerializer, embed: :objects
attributes :id, :name, :description, :emoji, :url, :username, :updated_at
end
end