struct Discord::REST::ModifyRolePositionPayload

Overview

A request payload to rearrange roles in a Guild by a REST API call.

Defined in:

discordcr/mappings/rest.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : UInt64 | Snowflake, position : Int32) #

[View source]
def self.new(__temp_1108 : JSON::PullParser) #

Instance Method Detail

def id : Snowflake #

def id=(_id : Snowflake) #

def position : Int32 #

def position=(_position : Int32) #

def to_json(json : JSON::Builder) #